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 2020/07/01 09:24:50 UTC

[GitHub] [incubator-superset] som2014 opened a new issue #10216: Superset Roles Assignment For New Users

som2014 opened a new issue #10216:
URL: https://github.com/apache/incubator-superset/issues/10216


    We have configured Superset with our LDAP server, i was wondering if it's feasible to assign Roles dynamically based on LDAP data. Currently i am seeing only this env variable 
   `AUTH_USER_REGISTRATION_ROLE= 'Gamma' `
   
   Can't figure it out how to use this for assigning role dynamically ?


----------------------------------------------------------------
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.

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


[GitHub] [incubator-superset] naikus commented on issue #10216: Superset Roles Assignment For New Users

Posted by GitBox <gi...@apache.org>.
naikus commented on issue #10216:
URL: https://github.com/apache/incubator-superset/issues/10216#issuecomment-673540392


   Okay I was able to figure it out. The flask-appbuilder version of the superset I'm using does not have jmespath support. I had to manually add it


----------------------------------------------------------------
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.

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


[GitHub] [incubator-superset] issue-label-bot[bot] commented on issue #10216: Superset Roles Assignment For New Users

Posted by GitBox <gi...@apache.org>.
issue-label-bot[bot] commented on issue #10216:
URL: https://github.com/apache/incubator-superset/issues/10216#issuecomment-652303844


   Issue Label Bot is not confident enough to auto-label this issue. See [dashboard](https://mlbot.net/data/apache/incubator-superset) for more details.


----------------------------------------------------------------
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.

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


[GitHub] [incubator-superset] naikus commented on issue #10216: Superset Roles Assignment For New Users

Posted by GitBox <gi...@apache.org>.
naikus commented on issue #10216:
URL: https://github.com/apache/incubator-superset/issues/10216#issuecomment-673333828


   @som2014 There is another configuration option (in your superset_config.py) that can be used according to flask appbuilder documentation. But its not working for me :-(
   ```python
   # e.g
   AUTH_USER_REGISTRATION_ROLE_JMESPATH="ends_with(email, '@yourcompany.com') && 'Admin' || 'Gamma'"
   ```
   This should ideally grant all users from yourcompany.com admin roles


----------------------------------------------------------------
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.

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


[GitHub] [incubator-superset] naikus edited a comment on issue #10216: Superset Roles Assignment For New Users

Posted by GitBox <gi...@apache.org>.
naikus edited a comment on issue #10216:
URL: https://github.com/apache/incubator-superset/issues/10216#issuecomment-673333828


   @som2014 There is another configuration option (in your superset_config.py) that can be used according to flask appbuilder documentation. But its not working for me :-(
   ```python
   # e.g
   AUTH_USER_REGISTRATION_ROLE_JMESPATH="ends_with(email, '@yourcompany.com') && 'Admin' || 'Gamma'"
   ```
   This should ideally grant all users from yourcompany.com admin roles
   
   You may find this issue helpful
   https://github.com/apache/incubator-superset/issues/3419


----------------------------------------------------------------
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.

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


[GitHub] [incubator-superset] stale[bot] commented on issue #10216: Superset Roles Assignment For New Users

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #10216:
URL: https://github.com/apache/incubator-superset/issues/10216#issuecomment-707194699


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
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.

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