Get Permissions
Get list of permissions.
caution
This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the List Objects endpoint instead.
Endpoint
GET /v1/permissions
Request
- cURL
- Go
- Java
- Node.js
- Python
- Ruby
- PHP
- CLI
curl "https://api.warrant.dev/v1/permissions" \
-H "Authorization: ApiKey YOUR_KEY"
permissions, err := permission.ListPermissions(&warrant.ListPermissionParams{
ListParams: warrant.ListParams{
Limit: 10,
},
})
if err != nil {
// handle error
}
ListResult<Permission> permissions = client.listPermissions(new ListParams().withLimit(10));
warrantClient.Permission.listPermissions({ limit: 10 });
permissions = warrant.Permission.list({"limit": 10})
permissions = Warrant::Permission.list({ limit: 10 })
warrant list permissions
Response
[
{
"permissionId": "view-self-service-dashboard"
},
{
"permissionId": "create-report"
}
]