Security Rights
search admins by their email address
admin status: active or archived
number of admins per page
order admins by name in ascending or descending order
Number of the page to serve. This parameter activates classic page-based pagination
and cannot be used with parameter next_page_after which activates cursor-based pagination.
When cursor based pagination is used, each paginated response has value next_page_after which, if submitted
as a parameter, allows to retrieve the next page. next_page_after is null is there is no next page.
next_page_after cannot be used together with parameter page. page activates classic page-based pagination.
Success
A value which allows to retrieve the next page. (Cursor-based pagination)
Unauthorized
GET /global_admins HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"admins": [
{
"archived": false,
"email": "peter@peterson.com",
"family_name": "Peterson",
"given_name": "Peter",
"id": "9de00c4f-e1d9-4a7e-8b9e-38b3f5648ee2"
}
],
"meta": {},
"next_page_after": "text"
}ID of the admin
Success
Unauthorized
GET /global_admins/{id} HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"admin": {
"archived": false,
"email": "peter@peterson.com",
"family_name": "Peterson",
"given_name": "Peter",
"id": "9de00c4f-e1d9-4a7e-8b9e-38b3f5648ee2"
}
}ID of the admin
Success
Bad Request
Unauthorized
DELETE /global_admins/{id} HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
ID of the admin
Success
Bad Request
Unauthorized
POST /global_admins/{id}/archive HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
ID of the admin
Success
Bad Request
Unauthorized
POST /global_admins/{id}/restore HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"admin": {
"archived": false,
"email": "peter@peterson.com",
"family_name": "Peterson",
"given_name": "Peter",
"id": "9de00c4f-e1d9-4a7e-8b9e-38b3f5648ee2"
}
}ID of a user to whom security rights are assigned
list of security rights
atom:org:assign_org_sr_to_userSuccess
Unauthorized
POST /global_admins/{id}/security_rights HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 54
{
"security_rights": [
"atom:org:assign_org_sr_to_user"
]
}ID of a user from whom security rights are removed
List of comma-separated security rights to remove
Success
Bad Request
Unauthorized
DELETE /global_admins/{id}/security_rights/{security_rights} HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Success
Unauthorized
GET /security_rights HTTP/1.1
Host: api-sandbox.svx.exchange
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"orgs": [
{
"id": "3bd00941-6e5b-4852-aefd-3c55f5660592",
"name": "organisation name"
}
],
"security_rights": [
{
"scope": {
"org_id": "a483a0f8-144d-4657-8d08-071653d25b7f",
"tenant_id": "0361dd6e-db21-4cb2-910a-5cf4d30d0dd2"
},
"security_rights": [
"atom:org:assign_org_sr_to_user"
]
}
],
"tenants": [
{
"id": "bf15d4be-8e8d-48a8-af49-df615844fa4d",
"name": "a tenant name"
}
]
}By default only active security rights are fetched.
with_inactive allows to retrieve all security rights including inactive.
Success
GET /security_rights_registry HTTP/1.1
Host: api-sandbox.svx.exchange
Accept: */*
Success
{
"security_rights": [
{
"security_right": "atom:global:assign_sr_to_tenant",
"spec": {
"active": true,
"description": "Assign a security right to a tenant",
"for_org": false,
"for_tenant": false,
"internal_atom_security_right": true
}
}
]
}Last updated