v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1474216311.3 KB

Specifies a user's permissions. For more information, see Security and Permissions.

Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.

post/#X-Amz-Target=OpsWorks_20130218.SetPermission

Headers

X-Amz-Target'OpsWorks_20130218.SetPermission' required

Request body

StackIdstring required

The stack ID.

IamUserArnstring required

The user's IAM ARN. This can also be a federated user's ARN.

AllowSshboolean

The user is allowed to use SSH to communicate with the instance.

AllowSudoboolean

The user is allowed to use <b>sudo</b> to elevate privileges.

Levelstring
<p>The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.</p> <ul> <li> <p> <code>deny</code> </p> </li> <li> <p> <code>show</code> </p> </li> <li> <p> <code>deploy</code> </p> </li> <li> <p> <code>manage</code> </p> </li> <li> <p> <code>iam_only</code> </p> </li> </ul> <p>For more information about the permissions associated with these levels, see <a href="https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User Permissions</a>.</p>

Response

Success