Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I user roles as UserId Question? #237

Open
kethan opened this issue Apr 19, 2017 · 2 comments
Open

Can I user roles as UserId Question? #237

kethan opened this issue Apr 19, 2017 · 2 comments

Comments

@kethan
Copy link

kethan commented Apr 19, 2017

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']}
        ]
    }
@c3s4r
Copy link

c3s4r commented May 8, 2017

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?

@n-sviridenko
Copy link

Same question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants