UserRoles
Get a list of User Roles.
Lists all of the User Roles in the current Octopus Deploy instance. The results will be sorted alphabetically by name.
get/userroles
Request
- Base URLhttps://demo.octopus.app/api
- URLhttps://demo.octopus.app/api/userroles
- Auth
- API key in header X-Octopus-ApiKey
- or API key in query parameter ApiKey
- or API key in header X-NuGet-ApiKey
Query parameters
idsstring[]
A list of User Role IDs, to limit the result to those with a particular ID. Example: ["UserRoles-1", "UserRoles-2"]
partialNamestring
A partial name, to limit the result to those with a name that includes the partial name
skipinteger
Number of items to skip. Defaults to zero
takeinteger
Number of items to take. Defaults to 30
Response
Request list of user roles.
Example response
{
"Items": [
{
"Links": {
"Self": "/api/..."
}
}
],
"ItemsPerPage": 30,
"ItemType": "UserRole",
"LastPageNumber": 1,
"Links": {
"Self": "/api/..."
},
"NumberOfPages": 2,
"TotalResults": 42
}Changes
No recorded changes to this operation across all 13 revisions of this API.