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
| Argument | Type | Description |
|---|---|---|
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
evaluatePolicyProposalPolicyEvaluationResult
PolicyEvaluationResultObject type. Result of evaluating what permissions would be granted by the provided role and group definitions.
| Field | Type | Description |
|---|---|---|
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
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
| Argument | Type | Description |
|---|---|---|
targetPermission | Permission! | Permission requested |
targetId | String | Object ID access was requested for |
reason | String | Reason for requesting access |
Returns
Example
query GetAccessRequest($targetPermission: Permission!) {
getAccessRequest(targetPermission: $targetPermission) {
id
userId
status
targetPermission
targetId
reason
createdTime
updatedTime
notifiedAdmins
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
roleName | String | Optional role name to filter by. If provided, returns only that role. |
includeDeprecatedPermissions | Boolean | If 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
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
| Argument | Type | Description |
|---|---|---|
groupName | String | Optional group name to filter by. If provided, returns only that group. |
Returns
Example
query GetAuthorizationGroups {
getAuthorizationGroups {
name
version
isManaged
isInternal
label
description
ssoGroup
source
isMembershipManaged
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
groupName | String | Optional exact group-name filter. If provided, returns at most that single group (overrides search). |
search | String | Optional 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. |
before | String | |
after | String | |
first | Int | |
last | Int |
Returns
PaginatedAuthorizationGroupConnection
Example
query GetAuthorizationGroupsPaginated {
getAuthorizationGroupsPaginated {
totalCount
}
}Types used only by getAuthorizationGroupsPaginated
getAuthorizationGroupsPaginatedPaginatedAuthorizationGroupConnection
PaginatedAuthorizationGroupConnectionObject 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.
| Field | Type | Description |
|---|---|---|
pageInfo | PageInfo! | Pagination data for this connection. |
edges | [PaginatedAuthorizationGroupEdge]! | Contains the nodes in this connection. |
totalCount | Int! | Total number of authorization groups matching the filter, before pagination is applied. |
PaginatedAuthorizationGroupEdge
PaginatedAuthorizationGroupEdgeObject type. A Relay edge containing a PaginatedAuthorizationGroup and its cursor.
| Field | Type | Description |
|---|---|---|
node | AuthorizationGroupOutput | The item at the end of the edge |
cursor | String! | 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
getAuthorizationProvisioningAuthorizationProvisioningOutput
AuthorizationProvisioningOutputObject type. Authorization Provisioning configuration, used for provisioning users and groups.
| Field | Type | Description |
|---|---|---|
uuid | UUID | UUID of the auth provisioning model. |
enabled | Boolean | Is this Authorization Provisioning configuration enabled. |
providerName | String | Short 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. |
baseEndpoint | String | Base endpoint used by this auth provisioning. |
lastUpdatedOn | DateTime | Timestamp when this configuration was last modified. |
lastUpdateUser | AuditedUser | User that last updated this configuration. |
createdBy | AuditedUser | User that created this configuration. |
createdOn | DateTime | Timestamp when this configuration was created. |
schema | String | Schema version for this auth provisioning configuration. |
auditLogs | AuditLogEntryConnection | Get 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
getIAMResourceDefinitionsIAMPermissionDefinition
IAMPermissionDefinitionObject type. A permission/action that can be granted or denied on a resource.
| Field | Type | Description |
|---|---|---|
label | String! | User-friendly display name (e.g., 'Access', 'Edit SSO'). |
path | String! | 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. |
pathLabel | String! | User-friendly display name including resource hierarchy (e.g., 'Monitors → Data Sampling → Access'). |
type | PermissionActionType! | 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. |
description | String! | Explains what this permission is/how it is used in the system. |
deprecated | Boolean! | Whether or not this permission is deprecated and so should not be used for new roles. |
deprecationReason | String | If deprecated, explains why and how to migrate. |
IAMResourceDefinition
IAMResourceDefinitionObject type. A feature/feature area in the system that can be protected with permissions.
| Field | Type | Description |
|---|---|---|
label | String! | User-friendly display name (e.g., 'Monitors', 'PII Filters'). |
path | String! | 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. |
description | String! | 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
PermissionActionTypeEnum 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.
| Value | Description |
|---|---|
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
| Argument | Type | Description |
|---|---|---|
userId | UUID | Optional user ID to resolve for another user than the current user. If omitted, returns current user's authorization. |
Returns
Example
query GetUserAuthorization {
getUserAuthorization {
groups
roles
isDomainRestricted
canEditTableMonitors
allowedAgentCapabilities
}
}Related types
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
| Argument | Type | Description |
|---|---|---|
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
resolveDataAuthorizationPermissionAccessResult
PermissionAccessResultObject 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.
| Field | Type | Description |
|---|---|---|
permission | Permission | The permission that was checked. |
resourcePath | ResourcePolicyPath | The resource policy path that was checked. |
mcon | String | The MCON this result applies to. |
monitorUuid | String | The monitor UUID this result applies to. |
domainUuid | String | The domain UUID this result applies to. |
hasAccess | Boolean! | True if the current user is authorized for this combination. |
ResourcePolicyPath
ResourcePolicyPathEnum type. Resource policy paths for permission resolution. Each path resolves to all type-specific permissions under the resource.
| Value | Description |
|---|---|
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
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
| Argument | Type | Description |
|---|---|---|
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
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
| Argument | Type | Description |
|---|---|---|
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
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
| Argument | Type | Description |
|---|---|---|
description | String | Description of the role's purpose and intended use. |
dryRun | Boolean | When True, validates and previews the role without saving. Returns the full role output including resolved permissions and definition YAML. Default: false. |
label | String! | UI/user-friendly display name for the role. |
name | String! | 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. |
recommendedFor | String | Who this role is recommended for, e.g., 'Data engineers managing pipelines'. |
restrictionsSummary | String | Summary of what this role restricts or does not allow access to. |
version | String | Optional 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
createOrUpdateAccountRoleAuthorizationPolicyStatementInput
AuthorizationPolicyStatementInputInput object type. A permission policy statement for a role.
| Field | Type | Description |
|---|---|---|
path | String! | Permission path, either a specific permission like 'monitors/edit' or a pattern like 'settings/*'. |
effect | PermissionEffect! | The desired policy effect for the specified permission path. |
CreateOrUpdateAccountRole
CreateOrUpdateAccountRoleObject type. Create or update a custom account role.
| Field | Type | Description |
|---|---|---|
role | RoleOutput | The created or updated role. |
Related types
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
| Argument | Type | Description |
|---|---|---|
definition | String! | 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
createOrUpdateAccountRoleFromDefinitionCreateOrUpdateAccountRoleFromDefinition
CreateOrUpdateAccountRoleFromDefinitionObject type. Create or update a custom account role from a YAML definition. Role examples at: https://docs.getmontecarlo.com/docs/iam-built-in-roles
| Field | Type | Description |
|---|---|---|
role | RoleOutput | The created or updated role. |
Related types
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
| Argument | Type | Description |
|---|---|---|
connectionRestrictionIds | [UUID] | Optional list of connection UUIDs to restrict visibility to. If not provided, will clear/apply no restrictions. |
description | String | Description/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. |
label | String | UI/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. |
mcpServersAccess | McpServersAccessMode | Which 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. |
name | String! | Unique to the account, human-readable name (for use in code/policy reference). |
roles | [String]! | Role names assigned to the group. |
ssoGroup | String | SSO group name to map this authorization group to |
version | String | Version 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
createOrUpdateAuthorizationGroupCreateOrUpdateAuthorizationGroup
CreateOrUpdateAuthorizationGroupObject 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.
| Field | Type | Description |
|---|---|---|
authorizationGroup | AuthorizationGroupOutput | Created 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
| Argument | Type | Description |
|---|---|---|
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. |
enabled | Boolean | Is this auth configuration enabled. |
providerName | String | Friendly name to help identify the provider system being configured. |
schema | ProvisioningSchema | The schema type for this auth provisioning. |
uuid | UUID | For updating an auth provisioning config. |
Returns
CreateOrUpdateAuthProvisioning
Example
mutation CreateOrUpdateAuthProvisioning {
createOrUpdateAuthProvisioning {
success
}
}Types used only by createOrUpdateAuthProvisioning
createOrUpdateAuthProvisioningCreateOrUpdateAuthProvisioning
CreateOrUpdateAuthProvisioningObject type. Create or update an account's authorization provisioning configuration.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
ProvisioningSchema
ProvisioningSchemaEnum type. Schema version for this auth provisioning configuration.
| Value | Description |
|---|---|
SCIM_V2 |
Related types
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
| Argument | Type | Description |
|---|---|---|
name | String! | The name of the role to delete. |
Returns
DeleteAccountRole
Example
mutation DeleteAccountRole($name: String!) {
deleteAccountRole(name: $name) {
deleted
}
}Types used only by deleteAccountRole
deleteAccountRoleDeleteAccountRole
DeleteAccountRoleObject type. Delete a custom account role.
| Field | Type | Description |
|---|---|---|
deleted | Boolean | True 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
| Argument | Type | Description |
|---|---|---|
name | String | Unique 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
deleteAuthorizationGroupDeleteAuthorizationGroup
DeleteAuthorizationGroupObject type. Delete an authorization group
| Field | Type | Description |
|---|---|---|
deleted | Int | Number 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
| Argument | Type | Description |
|---|---|---|
reason | String | Reason for requesting access |
targetId | String | Object ID access was requested for |
targetPermission | Permission | Permission 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
requestAccessAccessRequestOutput
AccessRequestOutputObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! | Whether the operation was successful |
accessRequest | AccessRequest | The access request object |
Related types
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
| Argument | Type | Description |
|---|---|---|
groupNames | [String]! | List of authorization group names the user should be a member of. |
memberUserId | String! | 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
updateUserAuthorizationGroupMembershipUpdateUserAuthorizationGroupMembership
UpdateUserAuthorizationGroupMembershipObject type. Update a user's authorization group membership. Authenticated user must have permission to manage users.
| Field | Type | Description |
|---|---|---|
addedToGroups | [AuthorizationGroupOutput!] | List of groups user was added to. |
removedFromGroups | [AuthorizationGroupOutput!] | List of groups user was removed from. |
Related types
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
