AttachManagedPolicy Method

Description

Attaches a Skeddly managed policy to a user.

HTTP Request

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

URL Parameters

id

ID of the user to which the managed policy is to be attached.

Type: string

Required: Yes

Body

The body is a JSON structure with the following properties.

managedPolicyId

ID of the managed policy to attach.

Type: string

Required: Yes

projectId

ID of the project under which the policy is attached to the user.

Type: string

Required: No

Returns

A User object.

Sample Request

PUT /api/Users/u-00000001/AttachManagedPolicy HTTP/1.1
Host: api.skeddly.com
Authorization: AccessKey <api key>
Content-Type: application/json

{
    "managedPolicyId": "full"
}

Sample Response

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

Last updated