agentaccess-mcp:SwitchUser

Write

agentaccess-mcp:SwitchUser is a Write access-level action in the agentaccess-mcp service. Grants permission to switch the logged-in local user account on an image builder desktop

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

Keys you can use in the Condition block of a policy that grants agentaccess-mcp:SwitchUser.

agentaccess-mcp:ImageBuilderArn ARN

Filters access by the ARN of the WorkSpaces Applications image builder

agentaccess-mcp:LocalUser String

Filters access by the local user account an agent may log in as on the image builder

agentaccess-mcp:StackArn ARN

Filters access by the ARN of the WorkSpaces Applications stack

Example IAM policy

A minimal policy that allows agentaccess-mcp:SwitchUser. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowAgentaccessmcpSwitchUser",
      "Effect": "Allow",
      "Action": "agentaccess-mcp:SwitchUser",
      "Resource": "*"
    }
  ]
}

Related actions in agentaccess-mcp

View all agentaccess-mcp actions →