Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

get_usergroups()

Description

Returns a list of user groups. The standard user groups are translated using $lang. Custom user groups are i18n translated.
Puts anything starting with 'General Staff Users' - in the English default names - at the top (e.g. General Staff).

Parameters

ColumnTypeDefaultDescription
$usepermissions boolean false Use permissions (user access)
$find string '' Search string
$id_name_pair_array boolean false Return an array of ID->name instead of full records

Return

array Matching user group records

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 7th November 2024 17:20 Europe/London time.