โ† API reference
Query / admin

listUserPolicies

List policies attached to a user. Requires iam:listUserPolicies permission.

Arguments

userIdUserID!

User ID to list policies for

firstInt

Number of items from the start

afterString

Cursor to start after

Returns IAMPolicyConnection!

Scalar fields at a glance

totalCountInt
โ†— View the complete IAMPolicyConnection type

Explore in a view

Administration and IAM
View exact SDL
"""
List policies attached to a user. Requires iam:listUserPolicies permission.
"""
listUserPolicies(
  """User ID to list policies for"""
  userId: UserID!
  """Number of items from the start"""
  first: Int
  """Cursor to start after"""
  after: String
): IAMPolicyConnection! @topic(names: ["admin"])

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