You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/09/15 16:17:21 UTC

[GitHub] [superset] usamaB opened a new issue #16713: Multiple Dynamic Role Assignment for new registered user

usamaB opened a new issue #16713:
URL: https://github.com/apache/superset/issues/16713


   Hi, I'm not fully sure if this is already available.
   I am thinking of something like setting an array of roles. Atm only one can be setup. 
   e.g.
   AUTH_USER_REGISTRATION_ROLE= ['role1', 'role2']
   
   I have the following case
   // This only sets SomeCustomRole and not Gamma in addition to it if the user is from domain.
   AUTH_USER_REGISTRATION_ROLE_JMESPATH="(contains(['list of users'], email) && 'Admin') || (ends_with(email, '@domain.com') && 'Gamma'&& 'SomeCustomRole') || 'Gamma'"
   
   // This gives Exception as the in the logs **LINE 3: WHERE ab_role.name = ARRAY['Gamma','SomeCustomRole']**
   AUTH_USER_REGISTRATION_ROLE_JMESPATH="(contains(['list of users'], email) && 'Admin') || (ends_with(email, '@domain.com') && ['Gamma','SomeCustomRole']) || 'Gamma'"
   
   OR if there is a  way to Extend Gamma role and add permissions to it,  then one role assignment could work. Adding all the permissions(which  Gamma role has) would be very for each new custom role.
   
   I'm using helm chart. 
   Is there anything like this available?
   Thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org