Skip to content
Snippets Groups Projects
Unverified Commit 9e38a0cc authored by VED PRAKASH KASHYAP's avatar VED PRAKASH KASHYAP Committed by GitHub
Browse files

docs: fix for role sync issues in case of custom OAuth2 configuration (#30878)

parent a391ebec
No related branches found
No related tags found
No related merge requests found
...@@ -302,6 +302,15 @@ AUTH_USER_REGISTRATION = True ...@@ -302,6 +302,15 @@ AUTH_USER_REGISTRATION = True
AUTH_USER_REGISTRATION_ROLE = "Public" AUTH_USER_REGISTRATION_ROLE = "Public"
``` ```
In case you want to assign the `Admin` role on new user registration, it can be assigned as follows:
```python
AUTH_USER_REGISTRATION_ROLE = "Admin"
```
If you encounter the [issue](https://github.com/apache/superset/issues/13243) of not being able to list users from the Superset main page settings, although a newly registered user has an `Admin` role, please re-run `superset init` to sync the required permissions. Below is the command to re-run `superset init` using docker compose.
```
docker-compose exec superset superset init
```
Then, create a `CustomSsoSecurityManager` that extends `SupersetSecurityManager` and overrides Then, create a `CustomSsoSecurityManager` that extends `SupersetSecurityManager` and overrides
`oauth_user_info`: `oauth_user_info`:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment