Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group permissions not created on login with OpenID #2246

Open
valentinesd opened this issue Feb 28, 2025 · 0 comments
Open

Group permissions not created on login with OpenID #2246

valentinesd opened this issue Feb 28, 2025 · 0 comments

Comments

@valentinesd
Copy link

When using OpenID to manage users and groups, group permissions are not created on login.

On login import_permissions_from_yaml_file is called with a user_model

Which parses the permissions yaml and calls add_permissions_from_group_permissions, again with a user_model

This function creates a set called unique_user_group_identifiers which consists of the default groups and any groups that have a user defined in the yaml.

If user_model is defined and a user isn't added to a group in the yaml, and thus unique_user_group_identifiers, the permission assignment is skipped.

if user_model and group_identifier not in unique_user_group_identifiers:
continue

When using OpenID to manage groups, users shouldn't need to update users and group mappings in the YAML file as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issue
Development

No branches or pull requests

1 participant