← All types
Platform & adminIn Input object

IAMPolicyPreviewInput

Input for simulating a draft IAM policy

Fields

userId

UserID!Required

User whose attached policies are combined with the draft

Draft policy document to simulate

Action to evaluate, e.g. 'job:read'

Attached policy the draft replaces; omit to add the draft alongside the attached policies

Simulated evaluation instant; defaults to now

Simulated network zones; omit for unknown, empty list for a known off-site connection

Attributes of a sample record to test against the filters

Registered relationship identifying the preview target. All grants to that target are considered. Attribute samples are unsupported for relationship previews.

Referenced by (1)
Exact type SDL
"""Input for simulating a draft IAM policy"""
input IAMPolicyPreviewInput {
  """User whose attached policies are combined with the draft"""
  userId: UserID!
  """Draft policy document to simulate"""
  document: IAMDocumentInput!
  """Action to evaluate, e.g. 'job:read'"""
  action: IAMAction!
  """
  Attached policy the draft replaces; omit to add the draft alongside the attached policies
  """
  replacingPolicyId: IAMPolicyID
  """Simulated evaluation instant; defaults to now"""
  at: IAMPolicyInstant
  """
  Simulated network zones; omit for unknown, empty list for a known off-site connection
  """
  networkZones: [String!]
  """Attributes of a sample record to test against the filters"""
  sample: [IAMPreviewAttributeInput!]
  """
  Registered relationship identifying the preview target. All grants to that target are considered. Attribute samples are unsupported for relationship previews.
  """
  relationship: String
}