โ† API reference
Mutation / admin

attachPolicy

Attach a policy to a user. Requires iam:attachPolicy permission.

Arguments

Attachment data

Returns AttachPolicyPayload!

Scalar fields at a glance

successBoolean!
โ†— View the complete AttachPolicyPayload type

Explore in a view

Administration and IAM
View exact SDL
"""Attach a policy to a user. Requires iam:attachPolicy permission."""
attachPolicy(
  """Attachment data"""
  input: AttachPolicyInput!
): AttachPolicyPayload! @topic(names: ["admin"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.