[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
@@ -24,6 +24,12 @@ type UserGetOptions struct {
|
||||
Active bool
|
||||
// Filters for the given role
|
||||
Role string
|
||||
// Filters for users matching any of the given system wide roles
|
||||
Roles []string
|
||||
// Filters for users matching any of the given channel roles, must be used with InChannelId
|
||||
ChannelRoles []string
|
||||
// Filters for users matching any of the given team roles, must be used with InTeamId
|
||||
TeamRoles []string
|
||||
// Sorting option
|
||||
Sort string
|
||||
// Restrict to search in a list of teams and channels
|
||||
|
||||
Ссылка в новой задаче
Block a user