curl -X DELETE https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/delegatedAdmins/10293847 \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"changed": true
}
{ "code": 16, "message": "unauthenticated" }
API
Remove delegated admin
Revoke a delegated admin’s Macroscope workspace Admin
curl -X DELETE https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/delegatedAdmins/10293847 \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"changed": true
}
{ "code": 16, "message": "unauthenticated" }
Revokes a delegated admin’s Macroscope workspace Admin. The revocation takes effect for access right away. Revoking someone who is not a delegated admin succeeds and changes nothing. Each attempt, including a refused or invalid one, is recorded in the workspace audit log with its outcome and the API key, or the person and connected app, that made it. Requests rejected before they reach the operation, such as malformed requests, invalid credentials and rate-limited requests, may have no entry. The entry is a member management event that names the GitHub user revoked.
Revocation removes only the delegated grant. GitHub organization owners are workspace admins through GitHub, and revoking a delegated grant does not change that.
See Errors for the rest.
Authorization
Requires an Admin API key, or an OAuth sign-in with Admin access by a person who is a workspace admin. Read and Write keys get403, and a sign-in with Read or Write access gets an insufficient_scope challenge for macroscope:admin.
Bearer <key>. See Authentication.How your client identifies the source of the request in the workspace audit log. Use
human or agent. Macroscope records the client’s value without verifying it. Other values are treated as unspecified.Path parameters
GitHub user ID of the delegated admin, as returned in
githubUserId by List delegated admins.Response
Whether a grant was revoked. Omitted when
false, meaning the person was not a delegated admin.Errors
| HTTP | Meaning |
|---|---|
403 | Your credential or your permissions do not allow managing delegated admins |
curl -X DELETE https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/delegatedAdmins/10293847 \
-H "Authorization: Bearer $MACROSCOPE_API_KEY"
{
"changed": true
}
{ "code": 16, "message": "unauthenticated" }