Modify Account Permissions
Sonoran CAD allows you to manually add or remove user account permissions via API.
Modify Account Permissions
Request Body
Name
Type
Description
User account permissions updated.INVALID REQUEST TYPE
INVALID COMMUNITY ID
API ENDPOINT IS NOT ENABLED FOR THIS COMMUNITY
INVALID API KEYAPI ID NOT LINKED TO AN ACCOUNT IN THIS COMMUNITY{
"id": "YOUR_COMMUNITY_ID",
"key": "YOUR_API_KEY",
"type": "SET_ACCOUNT_PERMISSIONS",
"data": [
{
"apiId": "STEAM:1234", // (OPTION 1) API ID: Typically, this is their STEAM ID
"username": "SonoranBrian", // (OPTION 2) CAD Username
"accId": 000-000-000, // (OPTION 3) Sonoran SSO UUID
"active": true, // OPTIONAL: Set account status to ACTIVE (true) or PENDING (false)
"add": [
// Array of permission names to ADD
"POLICE",
"POLICERECEDIT"
],
"remove": [
// Array of permission names to REMOVE
"CIVILIAN"
],
"set": [
// (Optional) Array of the ONLY permissions the user will get
// This overrides ADD and REMOVE
],
"join": true // (OPTIONAL) will force-join the user to the community.
// This force join only works when using `accId`
},
]
}Last updated
Was this helpful?

