-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add user group filter endpoint #16087
Conversation
Nice hopefully saves me doing some juggling to get the current users groups that I am doing currently @kjac 😄 As I do the following in the UI/Javascript to get the current groups
SuggestionsCould this be part of the response of getting the current user at Any plans to add group aliases? https://docs.umbraco.com/umbraco-cms/extending/dashboards#specifying-permissions |
Hi @warrenbuckley - thanks for chiming in here 👍 We're amending the user group endpoints to handle aliases (it was omitted in the initial implementation by mistake) - see #16154 Once that PR is in, this PR will likewise feature user group aliases in the output 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good tests good
Prerequisites
Description
This PR adds a filter endpoint for user groups.
Note that the filter only ever returns groups that the current user is a member of, unless the current user is an admin.
Testing this PR
Use Swagger to test the new endpoint:
filter
parameter.filter
parameter (all groups if the parameter is empty)