IGroup¶
-
interface
OCP\
IGroup
¶ - Interface IGroup
Implemented by: OC\Group\Group
Source: lib/public/IGroup.php#36
Methods¶
-
public
OCP\IGroup::
getGID
()¶ Source: lib/public/IGroup.php#41 Returns: string Since: 8.0.0
-
public
OCP\IGroup::
getDisplayName
()¶ - Returns the group display name
Source: lib/public/IGroup.php#49 Returns: string Since: 12.0.0
-
public
OCP\IGroup::
setDisplayName
($displayName)¶ - Set the group display name
Source: Parameters: - $displayName (string)
Returns: bool
Since: 18.0.0
-
public
OCP\IGroup::
getUsers
()¶ - get all users in the group
Source: lib/public/IGroup.php#66 Returns: \OCP\IUser[]
Since: 8.0.0
-
public
OCP\IGroup::
inGroup
($user)¶ - check if a user is in the group
Source: Parameters: - $user (
OCP\IUser
)
Returns: bool
Since: 8.0.0
- $user (
-
public
OCP\IGroup::
addUser
($user)¶ - add a user to the group
Source: Parameters: - $user (
OCP\IUser
)
Since: 8.0.0
- $user (
-
public
OCP\IGroup::
removeUser
($user)¶ - remove a user from the group
Source: Parameters: - $user (
OCP\IUser
)
Since: 8.0.0
- $user (
-
public
OCP\IGroup::
searchUsers
($search, $limit=null, $offset=null)¶ - search for users in the group by userid
Source: Parameters: - $search (string)
- $limit (int)
- $offset (int)
Returns: Since: 8.0.0
-
public
OCP\IGroup::
count
($search="")¶ - returns the number of users matching the search string
Source: Parameters: - $search (string)
Returns: int | bool
Since: 8.0.0
-
public
OCP\IGroup::
countDisabled
()¶ - returns the number of disabled users
Source: lib/public/IGroup.php#119 Returns: int | bool Since: 14.0.0
-
public
OCP\IGroup::
searchDisplayName
($search, $limit=null, $offset=null)¶ - search for users in the group by displayname
Source: Parameters: - $search (string)
- $limit (int)
- $offset (int)
Returns: Since: 8.0.0
-
public
OCP\IGroup::
getBackendNames
()¶ - Get the names of the backends the group is connected to
Source: lib/public/IGroup.php#138 Returns: string[] Since: 22.0.0
-
public
OCP\IGroup::
delete
()¶ - delete the group
Source: lib/public/IGroup.php#146 Returns: bool Since: 8.0.0
-
public
OCP\IGroup::
canRemoveUser
()¶ Source: lib/public/IGroup.php#152 Returns: bool Since: 14.0.0
-
public
OCP\IGroup::
canAddUser
()¶ Source: lib/public/IGroup.php#158 Returns: bool Since: 14.0.0
-
public
OCP\IGroup::
hideFromCollaboration
()¶ Source: lib/public/IGroup.php#164 Returns: bool Since: 16.0.0