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
This action does not support resource-level permissions; use "Resource": "*" in your policy.
Keys you can use in the Condition block of a policy that grants agentaccess-mcp:SwitchUser.
Filters access by the ARN of the WorkSpaces Applications image builder
Filters access by the local user account an agent may log in as on the image builder
Filters access by the ARN of the WorkSpaces Applications stack
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": "*"
}
]
}