get_user_roles

Gets all user roles.

Path:
/lib/get_user_roles.js

Parameters:

NameTypeDescription
usernameStringThe name of the user to retrieve roles for.

Example Request:

POST /redrock/query

{
	"Script":"@/lib/get_user_roles.js",
	args : {
		"username" : "[email protected]"
	}
}

Example Response:

{
    "success": true,
    "Result": {
        "IsAggregate": false,
        "Count": 0,
        "Columns": [],
        "FullCount": 0,
        "Results": [],
        "ReturnID": ""
    },
    "Message": null,
    "MessageID": null,
    "Exception": null,
    "ErrorID": null,
    "ErrorCode": null,
    "InnerExceptions": null
}