node_acl icon indicating copy to clipboard operation
node_acl copied to clipboard

Can I user roles as UserId Question?

Open kethan opened this issue 8 years ago • 2 comments

Hi,

Can I use userId in the roles field because I want user-specific ACL or is there any other better way to do that?

{
        roles:['123e4567-e89b-12d3-a456-426655440000'],
        allows:[
            {resources:'blogs', permissions:'get'},
            {resources:['forums', 'news'], permissions:['get', 'put', 'delete']}
        ]
    }

kethan avatar Apr 19 '17 02:04 kethan

I had the same question, but I found the answer in the documentation. 3rd paragraph:

Sometimes it may even be useful to create one role per user, to get the finest granularity possible

So I guess your approach is possible. Anyways, I don't know what the performance will be, specially if you have thousands of users. Does anyone has information on that? @manast?

c3s4r avatar May 08 '17 22:05 c3s4r

Same question.

n-sviridenko avatar Dec 22 '19 18:12 n-sviridenko