Skip to content

Is it Possible to have Azure users/groups mapped to different privileges #9216

Answered by benjy44
0xab3d asked this question in Q&A
Discussion options

You must be logged in to vote

So this is actually possible with a custom pipeline, it requires netbox >= v3.2.7 (due to #9715)

Once you have assigned roles to your azure netbox app you can do the following in netbox (alternatively instead of roles, other attributes included in the jwt can be used like groups)

You update the pipeline like this:

SOCIAL_AUTH_PIPELINE:
        - 'social_core.pipeline.social_auth.social_details'
        - 'social_core.pipeline.social_auth.social_uid'
        - 'social_core.pipeline.social_auth.social_user'
        - 'social_core.pipeline.user.get_username'
        - 'social_core.pipeline.social_auth.associate_by_email'
        - 'social_core.pipeline.user.create_user'
        - 'social_cor…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@benjy44
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by 0xab3d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants