github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/model/user_get.go (about) 1 // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. 2 // See LICENSE.txt for license information. 3 4 package model 5 6 type UserGetOptions struct { 7 // Filters the users in the team 8 InTeamId string 9 // Filters the users not in the team 10 NotInTeamId string 11 // Filters the users in the channel 12 InChannelId string 13 // Filters the users not in the channel 14 NotInChannelId string 15 // Filters the users in the group 16 InGroupId string 17 // Filters the users group constrained 18 GroupConstrained bool 19 // Filters the users without a team 20 WithoutTeam bool 21 // Filters the inactive users 22 Inactive bool 23 // Filters the active users 24 Active bool 25 // Filters for the given role 26 Role string 27 // Filters for users matching any of the given system wide roles 28 Roles []string 29 // Filters for users matching any of the given channel roles, must be used with InChannelId 30 ChannelRoles []string 31 // Filters for users matching any of the given team roles, must be used with InTeamId 32 TeamRoles []string 33 // Sorting option 34 Sort string 35 // Restrict to search in a list of teams and channels 36 ViewRestrictions *ViewUsersRestrictions 37 // Page 38 Page int 39 // Page size 40 PerPage int 41 } 42 43 type UserGetByIdsOptions struct { 44 // Since filters the users based on their UpdateAt timestamp. 45 Since int64 46 }