« Back to Product

Documentation

IPS_GetRoleList

 array IPS_GetRoleList ()

Returns

An array with the names of all existing roles.

Description

The function returns the names of all roles, including the always existing role @admin. The order of the entries is not guaranteed. Details of a role are returned by IPS_GetRole. The function requires neither administrator permissions nor the RBAC feature in the license.

Example

print_r(IPS_GetRoleList());

/* e.g. returns:
Array
(
    [0] => @admin
    [1] => Residents
)
*/
Any questions?