Nextcloud PHP API (master)

IGroup

Interface IGroup

Tags
since
8.0.0

Table of Contents

Methods

addUser()  : void
add a user to the group
canAddUser()  : bool
canRemoveUser()  : bool
count()  : int|bool
returns the number of users matching the search string
countDisabled()  : int|bool
returns the number of disabled users
delete()  : bool
Delete the group
getBackendNames()  : array<string|int, string>
Get the names of the backends the group is connected to
getDisplayName()  : string
Returns the group display name
getGID()  : string
getUsers()  : array<string|int, IUser>
get all users in the group
hideFromCollaboration()  : bool
inGroup()  : bool
check if a user is in the group
removeUser()  : void
Remove a user from the group
searchDisplayName()  : array<string|int, IUser>
Search for users in the group by displayname
searchUsers()  : array<string|int, IUser>
search for users in the group by userid
setDisplayName()  : bool
Set the group display name

Methods

addUser()

add a user to the group

public addUser(IUser $user) : void
Parameters
$user : IUser
Tags
since
8.0.0

canAddUser()

public canAddUser() : bool
Tags
since
14.0.0
Return values
bool

canRemoveUser()

public canRemoveUser() : bool
Tags
since
14.0.0
Return values
bool

count()

returns the number of users matching the search string

public count([string $search = '' ]) : int|bool
Parameters
$search : string = ''
Tags
since
8.0.0
Return values
int|bool

countDisabled()

returns the number of disabled users

public countDisabled() : int|bool
Tags
since
14.0.0
Return values
int|bool

delete()

Delete the group

public delete() : bool
Tags
since
8.0.0
Return values
bool

getBackendNames()

Get the names of the backends the group is connected to

public getBackendNames() : array<string|int, string>
Tags
since
22.0.0
Return values
array<string|int, string>

getDisplayName()

Returns the group display name

public getDisplayName() : string
Tags
since
12.0.0
Return values
string

getGID()

public getGID() : string
Tags
since
8.0.0
Return values
string

getUsers()

get all users in the group

public getUsers() : array<string|int, IUser>
Tags
since
8.0.0
Return values
array<string|int, IUser>

hideFromCollaboration()

public hideFromCollaboration() : bool
Tags
since
16.0.0
Return values
bool

inGroup()

check if a user is in the group

public inGroup(IUser $user) : bool
Parameters
$user : IUser
Tags
since
8.0.0
Return values
bool

removeUser()

Remove a user from the group

public removeUser(IUser $user) : void
Parameters
$user : IUser
Tags
since
8.0.0

searchDisplayName()

Search for users in the group by displayname

public searchDisplayName(string $search[, int|null $limit = null ][, int|null $offset = null ]) : array<string|int, IUser>
Parameters
$search : string
$limit : int|null = null
$offset : int|null = null
Tags
since
8.0.0
Return values
array<string|int, IUser>

searchUsers()

search for users in the group by userid

public searchUsers(string $search[, int|null $limit = null ][, int|null $offset = null ]) : array<string|int, IUser>
Parameters
$search : string
$limit : int|null = null
$offset : int|null = null
Tags
since
8.0.0
Return values
array<string|int, IUser>

setDisplayName()

Set the group display name

public setDisplayName(string $displayName) : bool
Parameters
$displayName : string
Tags
since
18.0.0
Return values
bool

        
On this page

Search results