Get Functional Roles By Enterprise

Get Functional Roles By Enterprise

Returns all functional roles defined with the specified usertype and enterpriseId.

Privileges required:

READ ENTERPRISE_SCOPED_ROLE

Request
URI
POST
https://{api_host}/portal/rest/functionalRole/getByEnterprise
COPY
Request Body

Show optional properties

{
    "userType": "string",
    "enterpriseId": 0
}
{
    "userType": "string",
    "enterpriseId": 0,
    "excludeSuperRoles": false
}
string
userType
Required

userType

integer
enterpriseId
Required

enterpriseId

boolean
excludeSuperRoles
Optional

excludeSuperRoles

Responses
200

Request was successfully processed

Returns Array of get_functional_roles_result_item of type(s) application/json
[
    {
        "id": 0,
        "created": "string",
        "operatorId": 0,
        "networkId": 0,
        "enterpriseId": 0,
        "enterpriseProxyId": 0,
        "name": "string",
        "userType": "string",
        "fromUserType": "string",
        "roleType": "string",
        "isCustom": 0,
        "isSuper": 0,
        "description": "string",
        "precedence": 0,
        "modified": "string"
    }
]

400
Returns generic_400 of type(s) application/json
Operation doesn't return any data structure

500
Returns generic_500 of type(s) application/json
Operation doesn't return any data structure

Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"userType:"string","enterpriseId:"integer"}' https://{api_host}/portal/rest/functionalRole/getByEnterprise