Flagsmith / flagsmith

Open Source Feature Flagging and Remote Config Service. Host on-prem or use our hosted version at https://flagsmith.com/
https://flagsmith.com/
BSD 3-Clause "New" or "Revised" License
4.75k stars 359 forks source link

Confusing Roles and Groups UX for non-admin users #4468

Open rolodato opened 1 month ago

rolodato commented 1 month ago

Is your feature request related to a problem? Please describe.

This is what non-organisation-admin users see when visiting the Roles page: image

This is the case even if the organisation does have custom roles. The message could be interpreted to mean "you (user) do not have any custom roles assigned to you", which can be confusing when troubleshooting permissions during onboarding. Only org admins can view the list of custom roles or perform any actions on them, so there is no reason non-admins should be able to see this page.

When viewing the Groups tab, non-admin users can see all groups in the organisation, even if they don't have admin permissions for them:

image

Clicking on a group that they are not admins of shows a spinner with no error message:

image

Describe the solution you'd like.

Optional - see alternatives below:

Describe alternatives you've considered

For groups, it's debatable whether non-admin users should be able to see the full list of groups or not. Within large organisations, admins may want to hide the existence of certain groups from non-admins, either for privacy or to prevent information overload if there is a large amount of groups.

If we do decide to implement this, the Groups page should:

Additional context

No response

kyle-ssg commented 3 days ago

@rolodato I think part of this is a duplicate of https://github.com/Flagsmith/flagsmith/issues/3784

RE the terminology "Custom Roles" this feels a bit confusing maybe there's a better phrase we could use

rolodato commented 3 days ago

Part of it is a duplicate, yes. Also sorry, this ticket is very poorly written now that I'm coming back to it.

"Custom role" is the best I could come up with when rewriting the RBAC documentation here: https://docs.flagsmith.com/system-administration/rbac. "Role" is currently an overloaded term for both of these things:

I'm open to suggestions for different names, can't think of anything better at the moment.