Roles and authorization (GraphQL)

Related queries and mutations in Users, accounts and access. Each has its own section.

Queries

evaluatePolicyProposal (query)

evaluatePolicyProposal is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Evaluate what permissions would result from role and group definitions WITHOUT persisting anything. Use for dry-run previews, authorization assistant verification, or IAM-as-code testing before applying changes. This endpoint is for forward-looking proposals: definitions that reference deprecated permissions or deprecated roles are rejected in the 'errors' output.

Arguments

ArgumentTypeDescription
roleDefinitions[String!]Optional list of role definition YAML strings.
groupDefinitions[String!]Optional list of group definition YAML strings.

Returns

PolicyEvaluationResult!

Example

query EvaluatePolicyProposal {
  evaluatePolicyProposal {
    warnings
    errors
  }
}

Types used only by evaluatePolicyProposal

PolicyEvaluationResult

Object type. Result of evaluating what permissions would be granted by the provided role and group definitions.

FieldTypeDescription
permissions[UserPermission!]!Resolved permissions that would result from the definitions.
warnings[String!]!Non-fatal issues encountered (e.g., 'Role foo not found').
errors[String!]!Fatal errors that prevented full evaluation.

Related types

UserPermission

getAccessRequest (query)

getAccessRequest is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get the status of an alert access request for the current user

Arguments

ArgumentTypeDescription
targetPermissionPermission!Permission requested
targetIdStringObject ID access was requested for
reasonStringReason for requesting access

Returns

AccessRequest

Example

query GetAccessRequest($targetPermission: Permission!) {
  getAccessRequest(targetPermission: $targetPermission) {
    id
    userId
    status
    targetPermission
    targetId
    reason
    createdTime
    updatedTime
    notifiedAdmins
  }
}

Related types

AccessRequest, Permission

getAccountRoles (query)

getAccountRoles is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get roles available for current user's account.

Arguments

ArgumentTypeDescription
roleNameStringOptional role name to filter by. If provided, returns only that role.
includeDeprecatedPermissionsBooleanIf true, includes deprecated permissions in resolvedPermissions and allowedPermissionCount. Default is false. Default: false.

Returns

[RoleOutput!]

Example

query GetAccountRoles {
  getAccountRoles {
    name
    version
    isManaged
    label
    description
    restrictionsSummary
    recommendedFor
    deprecated
    deprecationReason
    allowedPermissionCount
    definition
  }
}

Related types

RoleOutput

getAuthorizationGroups (query)

getAuthorizationGroups is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Deprecated: Returns all groups in one unpaginated response, which does not scale for accounts with many authorization groups. Use getAuthorizationGroupsPaginated instead — it supports cursor pagination and substring search on group name.

DEPRECATED. Get authorization group list for the user's account.

Arguments

ArgumentTypeDescription
groupNameStringOptional group name to filter by. If provided, returns only that group.

Returns

[AuthorizationGroupOutput!]

Example

query GetAuthorizationGroups {
  getAuthorizationGroups {
    name
    version
    isManaged
    isInternal
    label
    description
    ssoGroup
    source
    isMembershipManaged
  }
}

Related types

AuthorizationGroupOutput

getAuthorizationGroupsPaginated (query)

getAuthorizationGroupsPaginated is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: General availability

Get authorization groups for the user's account with Relay-style pagination and an optional substring search. Supports the standard first/after cursor arguments for forward pagination.

Arguments

ArgumentTypeDescription
groupNameStringOptional exact group-name filter. If provided, returns at most that single group (overrides search).
searchStringOptional case-insensitive substring filter. Matches against the group's name, label, description, SSO group mapping, the names of its restricted domains and connections, and the labels of its assigned roles. Ignored when groupName is also provided.
beforeString
afterString
firstInt
lastInt

Returns

PaginatedAuthorizationGroupConnection

Example

query GetAuthorizationGroupsPaginated {
  getAuthorizationGroupsPaginated {
    totalCount
  }
}

Types used only by getAuthorizationGroupsPaginated

PaginatedAuthorizationGroupConnection

Object type. Relay connection over authorization groups for cursor pagination.

Pagination is applied in-memory by graphene-django over the list returned
by the resolver. The service-layer query is fast (single SELECT per
account); the win is skipping per-group field resolution for groups not
on the requested page.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[PaginatedAuthorizationGroupEdge]!Contains the nodes in this connection.
totalCountInt!Total number of authorization groups matching the filter, before pagination is applied.
PaginatedAuthorizationGroupEdge

Object type. A Relay edge containing a PaginatedAuthorizationGroup and its cursor.

FieldTypeDescription
nodeAuthorizationGroupOutputThe item at the end of the edge
cursorString!A cursor for use in pagination

Related types

AuthorizationGroupOutput, PageInfo

getAuthorizationProvisioning (query)

getAuthorizationProvisioning is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get the authorization provisioning config for this account.

Returns

AuthorizationProvisioningOutput

Example

query GetAuthorizationProvisioning {
  getAuthorizationProvisioning {
    uuid
    enabled
    providerName
    baseEndpoint
    lastUpdatedOn
    createdOn
    schema
  }
}

Types used only by getAuthorizationProvisioning

AuthorizationProvisioningOutput

Object type. Authorization Provisioning configuration, used for provisioning users and groups.

FieldTypeDescription
uuidUUIDUUID of the auth provisioning model.
enabledBooleanIs this Authorization Provisioning configuration enabled.
providerNameStringShort text to describe the provider.
defaultDomains[DomainRestriction!]List of default domains for auth groups created by this configuration.
defaultRoles[RoleOutput!]List of default roles that are assigned to auth groups created by this configuration.
baseEndpointStringBase endpoint used by this auth provisioning.
lastUpdatedOnDateTimeTimestamp when this configuration was last modified.
lastUpdateUserAuditedUserUser that last updated this configuration.
createdByAuditedUserUser that created this configuration.
createdOnDateTimeTimestamp when this configuration was created.
schemaStringSchema version for this auth provisioning configuration.
auditLogsAuditLogEntryConnectionGet usage audit logs

Related types

AuditLogEntryConnection, AuditedUser, DateTime, DomainRestriction, RoleOutput, UUID

getIAMResourceDefinitions (query)

getIAMResourceDefinitions is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get all IAM resources and their permissions defined in the system.

Returns

[IAMResourceDefinition!]!

Example

query GetIAMResourceDefinitions {
  getIAMResourceDefinitions {
    label
    path
    description
  }
}

Types used only by getIAMResourceDefinitions

IAMPermissionDefinition

Object type. A permission/action that can be granted or denied on a resource.

FieldTypeDescription
labelString!User-friendly display name (e.g., 'Access', 'Edit SSO').
pathString!Fully-qualified permission path including containing resource(s) (e.g., 'monitors/edit', 'monitors/data-sampling/access'). Used in policy statements to grant/deny the permission.
pathLabelString!User-friendly display name including resource hierarchy (e.g., 'Monitors → Data Sampling → Access').
typePermissionActionType!Type of action this permission grants. Values: - Read: Authorizes operations that involve viewing/querying (read only--no changes). - Write: Authorizes operations that involve some form of modification (create, update, delete, etc.) - Propose: Authorizes operations that suggest changes requiring review and approval before taking effect (e.g., drafting monitors). - Tune: Authorizes tuning the detection model of an existing resource (e.g., adjusting a monitor's anomaly sensitivity/thresholds) without the broader ability to create, edit, or delete it.
descriptionString!Explains what this permission is/how it is used in the system.
deprecatedBoolean!Whether or not this permission is deprecated and so should not be used for new roles.
deprecationReasonStringIf deprecated, explains why and how to migrate.
IAMResourceDefinition

Object type. A feature/feature area in the system that can be protected with permissions.

FieldTypeDescription
labelString!User-friendly display name (e.g., 'Monitors', 'PII Filters').
pathString!Fully-qualified resource path (e.g., 'settings/users', meaning the Users feature under the Settings feature area). Used in policy statements to grant/deny permissions for itself and any sub-resources.
descriptionString!Describes the feature/feature area this resource represents.
permissions[IAMPermissionDefinition!]!Permissions that are defined to control access to this resource.
subResources[IAMResourceDefinition!]!Features/feature areas that are conceptually nested under this one.
PermissionActionType

Enum type. Type of action a permission grants.

Values:

  • Read: Authorizes operations that involve viewing/querying (read only--no changes).
  • Write: Authorizes operations that involve some form of modification (create, update, delete, etc.)
  • Propose: Authorizes operations that suggest changes requiring review and approval before taking effect (e.g., drafting monitors).
  • Tune: Authorizes tuning the detection model of an existing resource (e.g., adjusting a monitor's anomaly sensitivity/thresholds) without the broader ability to create, edit, or delete it.
ValueDescription
Read
Write
Propose
Tune

getUserAuthorization (query)

getUserAuthorization is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Get resolved authorization info for a user. Pass the userId to get authorization for another user (requires settings/users/access permission). If omitted, returns current user's authorization.

Arguments

ArgumentTypeDescription
userIdUUIDOptional user ID to resolve for another user than the current user. If omitted, returns current user's authorization.

Returns

UserAuthorizationOutput!

Example

query GetUserAuthorization {
  getUserAuthorization {
    groups
    roles
    isDomainRestricted
    canEditTableMonitors
    allowedAgentCapabilities
  }
}

Related types

UUID, UserAuthorizationOutput

resolveDataAuthorization (query)

resolveDataAuthorization is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Check the current user's access for each combination of permission/policy and data object. Returns one result per pair.

Arguments

ArgumentTypeDescription
mcons[String!]Table assets to check, as MCON strings.
monitorUuids[String!]Monitors to check, by UUID.
permissions[Permission!]Permissions to check. Requires data context (mcons, monitorUuids, or domainUuids).
resourcePaths[ResourcePolicyPath!]Resource policy paths to check — each resolves to all type-specific permissions under the resource.
domainUuids[String!]Domains for domain-scoped permission checks.

Returns

[PermissionAccessResult!]!

Example

query ResolveDataAuthorization {
  resolveDataAuthorization {
    permission
    resourcePath
    mcon
    monitorUuid
    domainUuid
    hasAccess
  }
}

Types used only by resolveDataAuthorization

PermissionAccessResult

Object type. Result of a data authorization check.

Each result identifies what was checked (permission or resourcePath),
which data object it applies to, and whether access is granted.

FieldTypeDescription
permissionPermissionThe permission that was checked.
resourcePathResourcePolicyPathThe resource policy path that was checked.
mconStringThe MCON this result applies to.
monitorUuidStringThe monitor UUID this result applies to.
domainUuidStringThe domain UUID this result applies to.
hasAccessBoolean!True if the current user is authorized for this combination.
ResourcePolicyPath

Enum type. Resource policy paths for permission resolution. Each path resolves to all type-specific permissions under the resource.

ValueDescription
AgentObservabilityAll
AgentObservabilityPropose
AgentObservabilityRead
AgentObservabilityWrite
AiAgentsAll
AiAgentsPropose
AiAgentsRead
AiAgentsWrite
AiAgentsChannelPostsAll
AiAgentsChannelPostsPropose
AiAgentsChannelPostsRead
AiAgentsChannelPostsWrite
AiAgentsMcpServersAll
AiAgentsMcpServersPropose
AiAgentsMcpServersRead
AiAgentsMcpServersWrite
AiAgentsMemoriesAll
AiAgentsMemoriesPropose
AiAgentsMemoriesRead
AiAgentsMemoriesWrite
AiAgentsTriageAll
AiAgentsTriagePropose
AiAgentsTriageRead
AiAgentsTriageWrite
AiAgentsTroubleshootingAll
AiAgentsTroubleshootingPropose
AiAgentsTroubleshootingRead
AiAgentsTroubleshootingWrite
AlertsAll
AlertsPropose
AlertsRead
AlertsWrite
AssetsAll
AssetsPropose
AssetsRead
AssetsWrite
ComplianceAll
CompliancePropose
ComplianceRead
ComplianceWrite
CompliancePiiInventoryAll
CompliancePiiInventoryPropose
CompliancePiiInventoryRead
CompliancePiiInventoryWrite
DashboardAll
DashboardPropose
DashboardRead
DashboardWrite
DashboardComposableAll
DashboardComposablePropose
DashboardComposableRead
DashboardComposableWrite
DataExportsAll
DataExportsPropose
DataExportsRead
DataExportsWrite
DataProductsAll
DataProductsPropose
DataProductsRead
DataProductsWrite
EtlAll
EtlPropose
EtlRead
EtlWrite
GraphqlAll
GraphqlPropose
GraphqlRead
GraphqlWrite
LineageAll
LineagePropose
LineageRead
LineageWrite
McpAll
McpPropose
McpRead
McpWrite
MonitorsAll
MonitorsPropose
MonitorsRead
MonitorsTune
MonitorsWrite
MonitorsDataSamplingAll
MonitorsDataSamplingPropose
MonitorsDataSamplingRead
MonitorsDataSamplingWrite
MonitorsExceptionsAll
MonitorsExceptionsPropose
MonitorsExceptionsRead
MonitorsExceptionsWrite
MonitorsManagementAll
MonitorsManagementPropose
MonitorsManagementRead
MonitorsManagementTune
MonitorsManagementWrite
MonitorsManagementAgentEvaluationAll
MonitorsManagementAgentEvaluationPropose
MonitorsManagementAgentEvaluationRead
MonitorsManagementAgentEvaluationWrite
MonitorsManagementAgentMetricAll
MonitorsManagementAgentMetricPropose
MonitorsManagementAgentMetricRead
MonitorsManagementAgentMetricWrite
MonitorsManagementAgentTrajectoryAll
MonitorsManagementAgentTrajectoryPropose
MonitorsManagementAgentTrajectoryRead
MonitorsManagementAgentTrajectoryWrite
MonitorsManagementAgentValidationAll
MonitorsManagementAgentValidationPropose
MonitorsManagementAgentValidationRead
MonitorsManagementAgentValidationWrite
MonitorsManagementComparisonAll
MonitorsManagementComparisonPropose
MonitorsManagementComparisonRead
MonitorsManagementComparisonWrite
MonitorsManagementCustomSqlAll
MonitorsManagementCustomSqlPropose
MonitorsManagementCustomSqlRead
MonitorsManagementCustomSqlWrite
MonitorsManagementJobAll
MonitorsManagementJobPropose
MonitorsManagementJobRead
MonitorsManagementJobWrite
MonitorsManagementJsonSchemaAll
MonitorsManagementJsonSchemaPropose
MonitorsManagementJsonSchemaRead
MonitorsManagementJsonSchemaWrite
MonitorsManagementMetricAll
MonitorsManagementMetricPropose
MonitorsManagementMetricRead
MonitorsManagementMetricWrite
MonitorsManagementQueryPerformanceAll
MonitorsManagementQueryPerformancePropose
MonitorsManagementQueryPerformanceRead
MonitorsManagementQueryPerformanceWrite
MonitorsManagementTableAll
MonitorsManagementTablePropose
MonitorsManagementTableRead
MonitorsManagementTableWrite
MonitorsManagementValidationAll
MonitorsManagementValidationPropose
MonitorsManagementValidationRead
MonitorsManagementValidationWrite
PerformanceAll
PerformancePropose
PerformanceRead
PerformanceWrite
PerformanceInsightsAll
PerformanceInsightsPropose
PerformanceInsightsRead
PerformanceInsightsWrite
SettingsAll
SettingsPropose
SettingsRead
SettingsWrite
SettingsAgentConversationLogsAll
SettingsAgentConversationLogsPropose
SettingsAgentConversationLogsRead
SettingsAgentConversationLogsWrite
SettingsAgentsAll
SettingsAgentsPropose
SettingsAgentsRead
SettingsAgentsWrite
SettingsAiAgentsAll
SettingsAiAgentsPropose
SettingsAiAgentsRead
SettingsAiAgentsWrite
SettingsAlertActionsAll
SettingsAlertActionsPropose
SettingsAlertActionsRead
SettingsAlertActionsWrite
SettingsApiAll
SettingsApiPropose
SettingsApiRead
SettingsApiWrite
SettingsAuthorizationGroupsAll
SettingsAuthorizationGroupsPropose
SettingsAuthorizationGroupsRead
SettingsAuthorizationGroupsWrite
SettingsBillingAll
SettingsBillingPropose
SettingsBillingRead
SettingsBillingWrite
SettingsDeploymentsAll
SettingsDeploymentsPropose
SettingsDeploymentsRead
SettingsDeploymentsWrite
SettingsDomainsAll
SettingsDomainsPropose
SettingsDomainsRead
SettingsDomainsWrite
SettingsIngestionAll
SettingsIngestionPropose
SettingsIngestionRead
SettingsIngestionWrite
SettingsIntegrationsAll
SettingsIntegrationsPropose
SettingsIntegrationsRead
SettingsIntegrationsWrite
SettingsMcpServersAll
SettingsMcpServersPropose
SettingsMcpServersRead
SettingsMcpServersWrite
SettingsNetworkAll
SettingsNetworkPropose
SettingsNetworkRead
SettingsNetworkWrite
SettingsNotificationsAll
SettingsNotificationsPropose
SettingsNotificationsRead
SettingsNotificationsWrite
SettingsOauthClientsAll
SettingsOauthClientsPropose
SettingsOauthClientsRead
SettingsOauthClientsWrite
SettingsOauthClientsPersonalAll
SettingsOauthClientsPersonalPropose
SettingsOauthClientsPersonalRead
SettingsOauthClientsPersonalWrite
SettingsOauthClientsServiceAll
SettingsOauthClientsServicePropose
SettingsOauthClientsServiceRead
SettingsOauthClientsServiceWrite
SettingsPiiFiltersAll
SettingsPiiFiltersPropose
SettingsPiiFiltersRead
SettingsPiiFiltersWrite
SettingsRolesAll
SettingsRolesPropose
SettingsRolesRead
SettingsRolesWrite
SettingsSecretsAll
SettingsSecretsPropose
SettingsSecretsRead
SettingsSecretsWrite
SettingsSessionAll
SettingsSessionPropose
SettingsSessionRead
SettingsSessionWrite
SettingsSpendGuardrailsAll
SettingsSpendGuardrailsPropose
SettingsSpendGuardrailsRead
SettingsSpendGuardrailsWrite
SettingsSsoAll
SettingsSsoPropose
SettingsSsoRead
SettingsSsoWrite
SettingsUserAll
SettingsUserPropose
SettingsUserRead
SettingsUserWrite
SettingsUsersAll
SettingsUsersPropose
SettingsUsersRead
SettingsUsersWrite
UsersAll
UsersPropose
UsersRead
UsersWrite

Related types

Permission

resolveGroupsPermissions (query)

resolveGroupsPermissions is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Resolve combined permissions for a list of groups, including domain restrictions. Use to evaluate what permissions would be granted to a user if added to the specified groups.

Arguments

ArgumentTypeDescription
groups[String!]!List of group names to resolve permissions for.

Returns

[UserPermission!]!

Example

query ResolveGroupsPermissions($groups: [String!]!) {
  resolveGroupsPermissions(groups: $groups) {
    permission
    permissionPath
    effect
    domainRestrictionIds
    isSpecifiedByPolicy
  }
}

Related types

UserPermission

resolveRolesPermissions (query)

resolveRolesPermissions is a query in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Resolve combined permissions for a list of roles. Use to evaluate what permissions a set of roles would grant to determine what the effective permissions would be if those roles were added to a group.

Arguments

ArgumentTypeDescription
roles[String!]!List of role names to resolve permissions for.

Returns

[UserPermission!]!

Example

query ResolveRolesPermissions($roles: [String!]!) {
  resolveRolesPermissions(roles: $roles) {
    permission
    permissionPath
    effect
    domainRestrictionIds
    isSpecifiedByPolicy
  }
}

Related types

UserPermission

Mutations

createOrUpdateAccountRole (mutation)

createOrUpdateAccountRole is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create or update a custom account role.

Arguments

ArgumentTypeDescription
descriptionStringDescription of the role's purpose and intended use.
dryRunBooleanWhen True, validates and previews the role without saving. Returns the full role output including resolved permissions and definition YAML. Default: false.
labelString!UI/user-friendly display name for the role.
nameString!Role name — a simple identifier (e.g. my-role, my_role) or optionally namespaced (e.g. acme/my-role, my_ns/viewer). The '{MANAGED_ROLE_PREFIX}/' prefix is reserved for Monte Carlo managed roles.
policyStatements[AuthorizationPolicyStatementInput!]!Authorization policy statements (path: effect) defined by this role.
recommendedForStringWho this role is recommended for, e.g., 'Data engineers managing pipelines'.
restrictionsSummaryStringSummary of what this role restricts or does not allow access to.
versionStringOptional version string for tracking changes. Defaults to YYYY-MM-DD from today's date.

Returns

CreateOrUpdateAccountRole

Example

mutation CreateOrUpdateAccountRole($label: String!, $name: String!, $policyStatements: [AuthorizationPolicyStatementInput!]!) {
  createOrUpdateAccountRole(label: $label, name: $name, policyStatements: $policyStatements) {
    role {
      name
      version
      isManaged
      label
      description
      restrictionsSummary
      recommendedFor
      deprecated
      deprecationReason
      allowedPermissionCount
      definition
    }
  }
}

Types used only by createOrUpdateAccountRole

AuthorizationPolicyStatementInput

Input object type. A permission policy statement for a role.

FieldTypeDescription
pathString!Permission path, either a specific permission like 'monitors/edit' or a pattern like 'settings/*'.
effectPermissionEffect!The desired policy effect for the specified permission path.
CreateOrUpdateAccountRole

Object type. Create or update a custom account role.

FieldTypeDescription
roleRoleOutputThe created or updated role.

Related types

PermissionEffect, RoleOutput

createOrUpdateAccountRoleFromDefinition (mutation)

createOrUpdateAccountRoleFromDefinition is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create or update a custom account role from a YAML definition.

Arguments

ArgumentTypeDescription
definitionString!YAML definition of the role. Must contain 'iam-role:' key with role fields. Role examples at: https://docs.getmontecarlo.com/docs/iam-built-in-roles

Returns

CreateOrUpdateAccountRoleFromDefinition

Example

mutation CreateOrUpdateAccountRoleFromDefinition($definition: String!) {
  createOrUpdateAccountRoleFromDefinition(definition: $definition) {
    role {
      name
      version
      isManaged
      label
      description
      restrictionsSummary
      recommendedFor
      deprecated
      deprecationReason
      allowedPermissionCount
      definition
    }
  }
}

Types used only by createOrUpdateAccountRoleFromDefinition

CreateOrUpdateAccountRoleFromDefinition

Object type. Create or update a custom account role from a YAML definition. Role examples at: https://docs.getmontecarlo.com/docs/iam-built-in-roles

FieldTypeDescription
roleRoleOutputThe created or updated role.

Related types

RoleOutput

createOrUpdateAuthorizationGroup (mutation)

createOrUpdateAuthorizationGroup is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Create or update a customer-managed authorization group. Names under the reserved mcd-internal/ prefix belong to Monte Carlo's own provisioning and are rejected, whether creating or updating.

Arguments

ArgumentTypeDescription
connectionRestrictionIds[UUID]Optional list of connection UUIDs to restrict visibility to. If not provided, will clear/apply no restrictions.
descriptionStringDescription/help text to help users understand the purpose of the group. If not provided on updates, will keep current value.
domainRestrictionIds[UUID]Optional list of domain IDs to restrict access to. If not provided, will clear/apply no restrictions.
labelStringUI/user-friendly display name, ex: Data Consumers. If not provided on updates, will keep current value.
mcpServerIds[UUID!]MCP server UUIDs members may use. Required with SELECTED, and only allowed with it.
mcpServersAccessMcpServersAccessModeWhich customer MCP servers members may use. If not provided, keeps the current access. Can't be set on groups managed by Monte Carlo, which always allow every server. Any mode other than NONE requires the group's roles to allow access to customer MCP servers.
memberUserIds[String]User IDs of group members. If not provided, no changes to membership will be performed.
nameString!Unique to the account, human-readable name (for use in code/policy reference).
roles[String]!Role names assigned to the group.
ssoGroupStringSSO group name to map this authorization group to
versionStringVersion of the permissions definitions the group is designed for ex: 2022-03-17. Defaults to system current. If not provided on updates, will keep current value.

Returns

CreateOrUpdateAuthorizationGroup

Example

mutation CreateOrUpdateAuthorizationGroup($name: String!, $roles: [String]!) {
  createOrUpdateAuthorizationGroup(name: $name, roles: $roles) {
    authorizationGroup {
      name
      version
      isManaged
      isInternal
      label
      description
      ssoGroup
      source
      isMembershipManaged
    }
  }
}

Types used only by createOrUpdateAuthorizationGroup

CreateOrUpdateAuthorizationGroup

Object type. Create or update a customer-managed authorization group. Names under the reserved mcd-internal/ prefix belong to Monte Carlo's own provisioning and are rejected, whether creating or updating.

FieldTypeDescription
authorizationGroupAuthorizationGroupOutputCreated or updated authorization group.

Related types

AuthorizationGroupOutput, McpServersAccessMode, UUID

createOrUpdateAuthProvisioning (mutation)

createOrUpdateAuthProvisioning is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Create or Update the account Auth Provisioning configuration.

Arguments

ArgumentTypeDescription
defaultRoles[String]The default role names to be assigned to authorization groups created by this provisioning system.
domainRestrictionIds[UUID]Optional list of domain IDs to restrict access to. If not provided, will clear/apply no restrictions.
enabledBooleanIs this auth configuration enabled.
providerNameStringFriendly name to help identify the provider system being configured.
schemaProvisioningSchemaThe schema type for this auth provisioning.
uuidUUIDFor updating an auth provisioning config.

Returns

CreateOrUpdateAuthProvisioning

Example

mutation CreateOrUpdateAuthProvisioning {
  createOrUpdateAuthProvisioning {
    success
  }
}

Types used only by createOrUpdateAuthProvisioning

CreateOrUpdateAuthProvisioning

Object type. Create or update an account's authorization provisioning configuration.

FieldTypeDescription
successBoolean!
ProvisioningSchema

Enum type. Schema version for this auth provisioning configuration.

ValueDescription
SCIM_V2

Related types

UUID

deleteAccountRole (mutation)

deleteAccountRole is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Delete a custom account role.

Arguments

ArgumentTypeDescription
nameString!The name of the role to delete.

Returns

DeleteAccountRole

Example

mutation DeleteAccountRole($name: String!) {
  deleteAccountRole(name: $name) {
    deleted
  }
}

Types used only by deleteAccountRole

DeleteAccountRole

Object type. Delete a custom account role.

FieldTypeDescription
deletedBooleanTrue if the role was deleted, False if it didn't exist.

deleteAuthorizationGroup (mutation)

deleteAuthorizationGroup is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Delete an authorization group

Arguments

ArgumentTypeDescription
nameStringUnique to the account, human-readable name name (for use in code/policy reference).

Returns

DeleteAuthorizationGroup

Example

mutation DeleteAuthorizationGroup {
  deleteAuthorizationGroup {
    deleted
  }
}

Types used only by deleteAuthorizationGroup

DeleteAuthorizationGroup

Object type. Delete an authorization group

FieldTypeDescription
deletedIntNumber of groups deleted.

requestAccess (mutation)

requestAccess is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Request permissions that the user is missing

Arguments

ArgumentTypeDescription
reasonStringReason for requesting access
targetIdStringObject ID access was requested for
targetPermissionPermissionPermission requested. Provide this or targetPermissions, not both.
targetPermissions[Permission!]Permissions requested together. Admins get one notification listing all of them. Provide this or targetPermission, not both.

Returns

AccessRequestOutput

Example

mutation RequestAccess {
  requestAccess {
    success
  }
}

Types used only by requestAccess

AccessRequestOutput

Object type.

FieldTypeDescription
successBoolean!Whether the operation was successful
accessRequestAccessRequestThe access request object

Related types

AccessRequest, Permission

updateUserAuthorizationGroupMembership (mutation)

updateUserAuthorizationGroupMembership is a mutation in the Monte Carlo GraphQL API, in Users, accounts and access. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Update a user's authorization group membership. Authenticated user must have permission to manage users.

Arguments

ArgumentTypeDescription
groupNames[String]!List of authorization group names the user should be a member of.
memberUserIdString!User ID for the user whose membership is being updated.

Returns

UpdateUserAuthorizationGroupMembership

Example

mutation UpdateUserAuthorizationGroupMembership($groupNames: [String]!, $memberUserId: String!) {
  updateUserAuthorizationGroupMembership(groupNames: $groupNames, memberUserId: $memberUserId) {
    addedToGroups {
      name
      version
      isManaged
      isInternal
      label
      description
      ssoGroup
      source
      isMembershipManaged
    }
  }
}

Types used only by updateUserAuthorizationGroupMembership

UpdateUserAuthorizationGroupMembership

Object type. Update a user's authorization group membership. Authenticated user must have permission to manage users.

FieldTypeDescription
addedToGroups[AuthorizationGroupOutput!]List of groups user was added to.
removedFromGroups[AuthorizationGroupOutput!]List of groups user was removed from.

Related types

AuthorizationGroupOutput

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.