Assign a capability to a group

post/capabilities/{capabilityName}/groups
Internal-Use Only

Assign the specified capability to a group principal

Request Samples

1

Response Samples

1No example avaliable

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
201CreatedCreatedHeaders
400Bad RequestThe principal represenation in the request body is invalidSchema
403ForbiddenForbidden. The user does not have the required sas.capability.assign.group capability.Schema
404Not FoundNo capability with the specified name has been foundSchema