Assign a capability to a group

post/capabilities/{capabilityName}/groups

Assign the specified capability to a group principal

Request Samples

1

Response Samples

1Not Available

Path Parameters

NameTypeRequiredDescription
capabilityName
string
true

The name of the capability

Request Body

The group to assign the capability to

A specific user or group.

NameTypeRequiredDescription
name
string
false

The ID of the user or group. If the principalType refers to a construct, no value is specified for t his property.

type
string
false

The type of the principal, or a construct.

Allowed values:
usergroup
version
integer<int32>
false

The principal media type version. The version described here is version 1.

Responses

StatusMeaningDescription
201Created

Created

Headers
400Bad Request

The principal represenation in the request body is invalid

Schema
403Forbidden

Forbidden. The user does not have the required sas.capability.assign.group capability.

Schema
404Not Found

No capability with the specified name has been found

Schema