Move LDAP groups out of Roles table and create a separate table that maps LDAP group to role, allowing many-to-one relationship between groups and role.
Move LDAP groups out of Roles table and create a separate table that maps LDAP group to role, allowing many-to-one relationship between groups and role.
If we remove GroupId as a Foreign Key constraint on the users table, and create a new user-to-group mapping table, then a user can be a member of multiple groups.
Currently, a user can be a member of only one group. A group can be added to multiple safes. Multiple groups can be added to one safe, either readonly or readwrite.
If we remove GroupId as a Foreign Key constraint on the users table, and create a new user-to-group mapping table, then a user can be a member of multiple groups.
Currently, a user can be a member of only one group. A group can be added to multiple safes. Multiple groups can be added to one safe, either readonly or readwrite.
So a user can have access to multiple safes.
A group can have access to multiple safes.
But a user can't be a member of more than one group. That seems ok to me.
So a user can have access to multiple safes.
A group can have access to multiple safes.
But a user can't be a member of more than one group. That seems ok to me.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Move LDAP groups out of Roles table and create a separate table that maps LDAP group to role, allowing many-to-one relationship between groups and role.
If we remove GroupId as a Foreign Key constraint on the users table, and create a new user-to-group mapping table, then a user can be a member of multiple groups.
Currently, a user can be a member of only one group. A group can be added to multiple safes. Multiple groups can be added to one safe, either readonly or readwrite.
So a user can have access to multiple safes.
A group can have access to multiple safes.
But a user can't be a member of more than one group. That seems ok to me.
Resolved by removing the concept of roles altogether.