Files
mattermost/model/user_get.go
Pradeep Murugesan bbee234af0 [GH-7494] Added the role to the user search filter (#9976)
* 7494 added the role to the user search filter

* 7494 changed the getUser function to accept the options

* added the role filter for the getAllProfiles method

* 7494 added the Inactive filter for AllProfiles

* 7494 refactored the where clause generation

* 7494 added the roles and inactive filters for inTeam Query

* 7494 fixed the review comments
2019-01-11 13:50:32 +00:00

28 lines
612 B
Go

// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package model
type UserGetOptions struct {
// Filters the users in the team
InTeamId string
// Filters the users not in the team
NotInTeamId string
// Filters the users in the channel
InChannelId string
// Filters the users not in the channel
NotInChannelId string
// Filters the users without a team
WithoutTeam bool
// Filters the inactive users
Inactive bool
// Filters for the given role
Role string
// Sorting option
Sort string
// Page
Page int
// Page size
PerPage int
}