user_attributes_get
Admin
Returns available options of user attributes of type enum.
Params
N/A
Return
| attribute | description |
|---|---|
roles* [User Role] |
The available user roles |
User Role
| attribute | description |
|---|---|
id* string |
The id of the role in the system |
label* i18n@user_roles |
The translation key used to localize the role name |
Example
The result object value:
{
"roles": [
{
"id": "admin",
"label": "administrator"
},
{
"id": "sectech",
"label": "tech.security"
},
{
"id": "tech",
"label": "tech.standard"
}
]
}