POST

Permissions.Get

Return one team member permission data. Only the owner or a manager can call this method.

Permissions

  • Only the organization owner or a manager can call this route.

Action

  • Returns Permissions information as JSON for the UI.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.

Required Parameters

NameTypeSampleExplanation
team_member_id
post
int321Team member id. Aliases: member_id, user_id, id.

Optional Parameters

No optional body parameters are defined for this function.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Permissions.Get",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "team_member_id": "321"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Permissions.Get",
    "url_domain": "https:\/\/{domain}\/app\/Permissions.Get"
}

Endpoint

POST /app/Permissions.Get
POST https://{user}.bull36.com/app/Permissions.Get
POST https://{domain}/app/Permissions.Get

Sample Output

{
    "success": 1,
    "team_member_id": "321",
    "data": {
        "roles_modules": {
            "customer_add": "1"
        },
        "shared_with_folder": [
            "1",
            "2"
        ],
        "folder_permissions": []
    }
}

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ team_member_id: '321' });

const res = await fetch('/app/Permissions.Get', { method: 'POST', headers: { Authorization: `Bearer ${token}` }, body });
const data = await res.json();
console.log(data);

Error Example

{
    "success": "0",
    "error": "permission_denied",
    "message": "Permission denied to manage this resource"
}