[MM-26574] Add role filters to get users, users search and add getFilteredUserStats endpoint (#14998)
* MM-26574 Add role filters to user search and get * Add ability to get filtered user stats Add support for include bots * Add tests for user count with filters Add tests * Apply changes from code review * Fix guest filtering * Fix up tests related to guests * Clean role names * Trigger CI * Trigger CI
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c53c9ed190
Коммит
c0bfa58ec1
@@ -13,6 +13,14 @@ type UserCountOptions struct {
|
||||
ExcludeRegularUsers bool
|
||||
// Only include users on a specific team. "" for any team.
|
||||
TeamId string
|
||||
// Only include users on a specific channel. "" for any channel.
|
||||
ChannelId string
|
||||
// Restrict to search in a list of teams and channels
|
||||
ViewRestrictions *ViewUsersRestrictions
|
||||
// Only include users matching any of the given system wide roles.
|
||||
Roles []string
|
||||
// Only include users matching any of the given channel roles, must be used with ChannelId.
|
||||
ChannelRoles []string
|
||||
// Only include users matching any of the given team roles, must be used with TeamId.
|
||||
TeamRoles []string
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user