Revoke role from user
Revoke role from user
client.zones.users.roles.revoke(stringroleID, RoleRevokeParams { zoneId, userId, scope_id, scope_type } params, RequestOptionsoptions?): void
DELETE/zones/{zoneId}/users/{userId}/roles/{roleId}
Revokes a role from the user. Provide the same (scope_type, scope_id) pair the grant was created with, or omit both to revoke the unscoped grant.
Parameters
roleID: string
Revoke role from user
import KeycardAPI from '@keycardai/api';
const client = new KeycardAPI({
apiKey: process.env['KEYCARD_API_API_KEY'], // This is the default and can be omitted
});
await client.zones.users.roles.revoke('roleId', { zoneId: 'zoneId', userId: 'userId' });