GitHub user gpandolfino edited a comment on the discussion: How to restrict
visible users and roles in dashboard ownership/visibility dropdowns for
specific custom roles?
hey @dosu,
I solved the issue.
The root cause was calling the role `RESTRICT-THIS-ROLE` in the UI and
`superset-RESTRICT-THIS-ROLE` in Keycloak.
I usually decouple them and use the AUTH_ROLES_MAPPING.
Sample:
```
AUTH_ROLES_MAPPING = {
"superset-RESTRICT-THIS-ROLE": ["RESTRICT-THIS-ROLE"],
}
```
The previous script I shared it was ok. Thanks
GitHub link:
https://github.com/apache/superset/discussions/37133#discussioncomment-15498648
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]