Download OpenAPI specification:
The RBAC service implements a role based access control infrastructure to GroupAlarm.com
Creates a new personal access token for the current user
| name required | string this token's display name |
| userID required | integer <int64> this token's user ID |
{- "name": "string",
- "userID": 0
}{- "id": 0,
- "name": "string",
- "token": "string",
- "userID": 0
}Returns all roles with passed organization id
| organization_id required | integer |
curl -XGET -H'Authorization: Bearer TOKEN' 'https://app.groupalarm.com/api/v1/roles'
[- {
- "assignUsersInChildOrganizations": true,
- "description": "string",
- "id": 1,
- "inheritable": true,
- "name": "string",
- "organizationID": 1,
- "type": "string"
}
]Creates a new role in passed organization id
| assignUsersInChildOrganizations | boolean Assigned users to this role can use this role in child organizations without being a participant |
| description | string Optional description for this role |
| id | integer <int64> >= 1 ID for this role |
| inheritable | boolean May this role be used in child-organizations |
| name required | string Name for this role |
| organizationID required | integer <int64> >= 1 Connected organization ID |
| type | string Definition of default organization roles |
{- "assignUsersInChildOrganizations": true,
- "description": "string",
- "id": 1,
- "inheritable": true,
- "name": "string",
- "organizationID": 1,
- "type": "string"
}{- "assignUsersInChildOrganizations": true,
- "description": "string",
- "id": 1,
- "inheritable": true,
- "name": "string",
- "organizationID": 1,
- "type": "string"
}Get specific role with passed ID
| roleID required | integer |
{- "assignUsersInChildOrganizations": true,
- "description": "string",
- "id": 1,
- "inheritable": true,
- "name": "string",
- "organizationID": 1,
- "type": "string"
}Update specific role with passed ID
| roleID required | integer |
| assignUsersInChildOrganizations | boolean Assigned users to this role can use this role in child organizations without being a participant |
| description | string Optional description for this role |
| id | integer <int64> >= 1 ID for this role |
| inheritable | boolean May this role be used in child-organizations |
| name required | string Name for this role |
| organizationID required | integer <int64> >= 1 Connected organization ID |
| type | string Definition of default organization roles |
{- "assignUsersInChildOrganizations": true,
- "description": "string",
- "id": 1,
- "inheritable": true,
- "name": "string",
- "organizationID": 1,
- "type": "string"
}{- "assignUsersInChildOrganizations": true,
- "description": "string",
- "id": 1,
- "inheritable": true,
- "name": "string",
- "organizationID": 1,
- "type": "string"
}Updates the read-only role configuration for a specific organization
| organizationID required | integer ID of an organization |
new configuration for the read-only role of the organization
| alarmAllowed | boolean |
{- "alarmAllowed": true
}List all assigned accesses for the passed roleID
| roleID required | integer |
| organization_id | integer must be set in order to use an inherited sub organization for rbac checking; if not set, the role's original organizationID will be used |
[- {
- "endpoints": [
- "string"
], - "id": 1,
- "methods": [
- "string"
], - "roleID": 1
}
]Creates a role access definition
| roleID required | integer |
| organization_id | integer must be set in order to use an inherited sub organization for rbac checking; if not set, the role's original organizationID will be used |
| endpoints required | Array of strings Concerning endpoints/services |
| id | integer <int64> >= 1 ID of this role access |
| methods required | Array of strings Allowed HTTP methods |
| roleID | integer <int64> >= 1 ID of the role |
{- "endpoints": [
- "string"
], - "id": 1,
- "methods": [
- "string"
], - "roleID": 1
}{- "endpoints": [
- "string"
], - "id": 1,
- "methods": [
- "string"
], - "roleID": 1
}Creates an role access definition
| roleID required | integer |
| roleAccessID required | integer |
| organization_id | integer must be set in order to use an inherited sub organization for rbac checking; if not set, the role's original organizationID will be used |
Updates a role access definition
| roleID required | integer |
| roleAccessID required | integer |
| organization_id | integer must be set in order to use an inherited sub organization for rbac checking; if not set, the role's original organizationID will be used |
| endpoints required | Array of strings Concerning endpoints/services |
| id | integer <int64> >= 1 ID of this role access |
| methods required | Array of strings Allowed HTTP methods |
| roleID | integer <int64> >= 1 ID of the role |
{- "endpoints": [
- "string"
], - "id": 1,
- "methods": [
- "string"
], - "roleID": 1
}{- "endpoints": [
- "string"
], - "id": 1,
- "methods": [
- "string"
], - "roleID": 1
}Create a user to role assignment
| roleID required | integer |
| organizationID | integer <int64> ID of the organization in which the role should be assigned |
| roleID required | integer <int64> >= 1 ID of the role |
| userID required | integer <int64> >= 1 ID of the user |
{- "organizationID": 0,
- "roleID": 1,
- "userID": 1
}Returns all roles for the current logged in user (JWT-TOKEN)
| organizationID | integer <int64> ID of the organization in which the role should be assigned |
| roleID required | integer <int64> >= 1 ID of the role |
| userID required | integer <int64> >= 1 ID of the user |
{- "organizationID": 0,
- "roleID": 1,
- "userID": 1
}Updates the organization settings for the rbac service
| organizationID required | integer |
| restrictedRoleAssignment | boolean |
{- "restrictedRoleAssignment": true
}Lists all organization tokens created for the given organization
| organization required | integer |
[- {
- "id": 0,
- "isSuperToken": true,
- "name": "string",
- "organizationID": 0,
- "token": "string"
}
]Creates a new organization token with the given data
| isSuperToken | boolean true to mark the token as SuperToken that can also be used for child organizations; false otherwise |
| name required | string this token's display name |
| organizationID required | integer <int64> this token's organization ID |
{- "isSuperToken": true,
- "name": "string",
- "organizationID": 0
}{- "id": 0,
- "isSuperToken": true,
- "name": "string",
- "organizationID": 0,
- "token": "string"
}