Data Types

DetachManagedPolicy Method

Description

Detaches a Skeddly managed policy from a user.

HTTP Request

PUT https://api.skeddly.com/api/Users/{id}/DetachManagedPolicy

URL Parameters

id

ID of the user from which the managed policy is to be detached.

Type: string

Required: Yes

Body

The body is a JSON structure with the following properties.

managedPolicyId

ID of the managed policy to detach.

Type: string

Required: Yes

Returns

A User object.

Sample Request

HTTP
Bash
HTTP
PUT /api/Users/u-00000001/DetachManagedPolicy HTTP/1.1
Host: api.skeddly.com
Authorization: AccessKey <api key>
Content-Type: application/json
‚Äč
{
"managedPolicyId": "full"
}
Bash
curl -X PUT "https://api.skeddly.com/api/Users/u-00000001/DetachManagedPolicy" \
-H "Authorization: AccessKey <api key>" \
-d managedPolicyId=full

Sample Response

{
"emailAddress": "user@example.com",
"lastAccessDate": "2016-06-09T11:00:00Z",
"managedPolicies": [
{
"managedPolicyId": "standard",
"name": "Standard Access"
}
],
"mfaType": "none",
"status": "disabled",
"userId": "u-00000001",
"username": "user1"
}