Users and accounts, part 1 of 2 (GraphQL)

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

Queries

getAccountFeatureFlagStatus (query)

getAccountFeatureFlagStatus 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.

Returns feature flag state

Arguments

ArgumentTypeDescription
featureString!Name of the feature flag

Returns

Boolean

Example

query GetAccountFeatureFlagStatus($feature: String!) {
  getAccountFeatureFlagStatus(feature: $feature)
}

getAccountOwners (query)

getAccountOwners 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 ids, emails, and names of all Account Owners in the account.

Arguments

ArgumentTypeDescription
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

UserBasicInfoConnection

Example

query GetAccountOwners {
  getAccountOwners {
    totalCount
    edgeCount
  }
}

Related types

UserBasicInfoConnection

getApiUsage (query)

getApiUsage 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 API Gateway usage data for the account's API key

Arguments

ArgumentTypeDescription
startDateDateStart date for the usage query (defaults to current date)
endDateDateEnd date for the usage query (defaults to current date)

Returns

ApiUsageResponse

Example

query GetApiUsage {
  getApiUsage {
    limits {
      totalRequestsPerDay
      requestsPerSecond
      burstLimit
    }
  }
}

Types used only by getApiUsage

ApiUsageLimits

Object type.

FieldTypeDescription
totalRequestsPerDayInt!
requestsPerSecondFloat!
burstLimitInt!
ApiUsageResponse

Object type.

FieldTypeDescription
limitsApiUsageLimits!
usage[DailyUsage!]!
DailyUsage

Object type.

FieldTypeDescription
dateDate!
requestsUsedInt!
requestsRemainingInt!

Related types

Date

getBqProjects (query)

getBqProjects 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.

Arguments

ArgumentTypeDescription
credentialsKeyString
ctpConfigJSONStringCTP pipeline config to apply when listing projects. Required when the connection relies on credential transformation.

Returns

[BigQueryProject]

Example

query GetBqProjects {
  getBqProjects {
    fullProjectId
    friendlyName
  }
}

Types used only by getBqProjects

BigQueryProject

Object type.

FieldTypeDescription
fullProjectIdString
friendlyNameString

Related types

JSONString

getCollectionProperties (query)

getCollectionProperties 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 infrastructure properties for a new data collector deployment

Arguments

ArgumentTypeDescription
regionString!AWS region

Returns

CollectionProperties

Example

query GetCollectionProperties($region: String!) {
  getCollectionProperties(region: $region) {
    crossAccountExternalId
    customerAccountToken
    codeBucket
    codeVersion
    platformAwsAccountId
    dockerImageUri
  }
}

Types used only by getCollectionProperties

CollectionProperties

Object type. Collection infrastructure properties

FieldTypeDescription
crossAccountExternalIdStringExternal id for cross account IAM role
customerAccountTokenStringCustomer account token (unique per data collector)
codeBucketStringS3 bucket containing data collector code
codeVersionStringData collector code version
platformAwsAccountIdStringMonte Carlo AWS account id
dockerImageUriStringURI of the docker image for the data collector
platformRegionDetailsPlatformRegionPropertiesRegion-specific properties
PlatformRegionProperties

Object type. Region-specific platform properties

FieldTypeDescription
gatewayEndpointStringGateway endpoint URL
gatewayVpceStringGateway VPC id
linkerArnStringARN of SNS topic used to link data collector deployment
logArnStringARN of CloudWatch log destination for cross-account log subscriptions
templateLaunchUrlStringCloudFormation template launch URL

getDatasets (query)

getDatasets 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 datasets in the account

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
searchStringFilter by a dataset
allowSearchOnProjectBooleanApply search filter on project name
domainIdUUIDFilter by domain UUID
includeTableCountBooleanInclude table count for each dataset Default: false.
offsetInt
beforeString
afterString
firstInt
lastInt
datasetString
projectString

Returns

DatasetConnection

Example

query GetDatasets {
  getDatasets {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

DatasetConnection, UUID

getDatasetsByUuid (query)

getDatasetsByUuid 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 datasets by UUID

Arguments

ArgumentTypeDescription
datasetUuids[UUID]!

Returns

[Dataset]

Example

query GetDatasetsByUuid($datasetUuids: [UUID]!) {
  getDatasetsByUuid(datasetUuids: $datasetUuids) {
    id
    deletedAt
    uuid
    project
    dataset
    mcon
    createdAt
    updatedAt
    isExcluded
    isMuted
    tableCount
    mutedEventTypes
  }
}

Related types

Dataset, UUID

getEventOnboardingData (query)

getEventOnboardingData 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.

Returns

EventOnbardingConfig

Example

query GetEventOnboardingData {
  getEventOnboardingData {
    accountUuid
    config
  }
}

Types used only by getEventOnboardingData

EventOnbardingConfig

Object type.

FieldTypeDescription
accountUuidUUID!
configJSONStringOnboarding Config meant to be shared between customers and MC

Related types

JSONString, UUID

getInvitesInAccount (query)

getInvitesInAccount 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.

Arguments

ArgumentTypeDescription
firstIntDefault: 100.
roles[String]Filter by user role membership
offsetInt
beforeString
afterString
lastInt
stateString

Returns

UserInviteConnection

Example

query GetInvitesInAccount {
  getInvitesInAccount {
    totalCount
    edgeCount
  }
}

Related types

UserInviteConnection

getProjects (query)

getProjects 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 projects by UUID

Arguments

ArgumentTypeDescription
dwIdUUIDFilter by a specific warehouse
searchStringFilter by a project
domainIdUUIDFilter by domain UUID
includeTableCountBooleanInclude table count for each project Default: false.
offsetInt
beforeString
afterString
firstInt
lastInt
projectString
mconString
uuidUUID

Returns

ProjectConnection

Example

query GetProjects {
  getProjects {
    pageInfo {
      hasNextPage
      hasPreviousPage
      startCursor
      endCursor
    }
  }
}

Related types

ProjectConnection, UUID

getTokenMetadata (query)

getTokenMetadata 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.

Retrieve access token metadata for current user or account

Arguments

ArgumentTypeDescription
indexAccessKeyIndexEnum!Specifies which metadata index to use
isServiceApiTokenBooleanFilter by token type. If not provided, returns all token types the caller is authorized to see.

Returns

[TokenMetadata]

Example

query GetTokenMetadata($index: AccessKeyIndexEnum!) {
  getTokenMetadata(index: $index) {
    id
    firstName
    lastName
    email
    creationTime
    createdBy
    expirationTime
    comment
    isServiceApiToken
    groups
  }
}

Types used only by getTokenMetadata

AccessKeyIndexEnum

Enum type.

ValueDescription
account
user

Related types

TokenMetadata

getTutorialState (query)

getTutorialState 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

Fetches stages and status for tutorial

Arguments

ArgumentTypeDescription
tutorialNameStringThe name of the tutorial being queried

Returns

[UserTutorial]

Example

query GetTutorialState {
  getTutorialState {
    id
    createdTime
    updatedTime
    accountUuid
    tutorialName
    tutorialStarted
    tutorialCompleted
    state
  }
}

Related types

UserTutorial

getUser (query)

getUser 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.

Returns

User

Example

query GetUser {
  getUser {
    id
    cognitoUserId
    email
    firstName
    lastName
    displayName
    state
    createdOn
    isSso
    ssoGroups
    ssoGroupsUpdatedAt
    tokenId
    isDeleted
    deletedAt
    deleteReason
    invalidatedAt
    persona
    role
  }
}

Related types

User

getUserApiKeys (query)

getUserApiKeys 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

List a specific user's personal API keys (account admin).

Arguments

ArgumentTypeDescription
userIdID!cognito_user_id of the target user, who must be in your account.

Returns

[TokenMetadata!]!

Example

query GetUserApiKeys($userId: ID!) {
  getUserApiKeys(userId: $userId) {
    id
    firstName
    lastName
    email
    creationTime
    createdBy
    expirationTime
    comment
    isServiceApiToken
    groups
  }
}

Related types

TokenMetadata

getUserAuthorizedClients (query)

getUserAuthorizedClients 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

List the OAuth/MCP clients a user in your account has authorized. Requires permission to edit users (settings/users/edit).

Arguments

ArgumentTypeDescription
userIdString!cognito_user_id of the target user, who must be in your account.

Returns

[AuthorizedConnectApplication!]

Example

query GetUserAuthorizedClients($userId: String!) {
  getUserAuthorizedClients(userId: $userId) {
    id
    applicationId
    clientId
    name
    grantedScopes
    oauthResource
    wasDynamicallyRegistered
    createdTime
  }
}

Types used only by getUserAuthorizedClients

AuthorizedConnectApplication

Object type. An OAuth/MCP client a user has authorized (a WorkOS Connect grant).

Resolved from a flat dict produced by _flatten_authorized_client; the
nested WorkOS application sub-object is lifted up there so the fields
here resolve directly with no per-field resolvers.

FieldTypeDescription
idStringGrant identifier.
applicationIdStringStable identifier for the authorized client application. This is the recommended value to pass to revokeUserAuthorizedClient.
clientIdStringThe client's OAuth identifier — what the client presents when it signs in to access the API. Depending on how the client registered, this is either an opaque id or a URL. Distinct from applicationId; also accepted by revokeUserAuthorizedClient.
nameStringClient application display name.
grantedScopes[String]Scopes the user granted this client.
oauthResourceStringResource the grant is scoped to, when present.
wasDynamicallyRegisteredBooleanWhether the client self-registered via Dynamic Client Registration.
createdTimeStringWhen the client application was created.

getUsersBasicInfo (query)

getUsersBasicInfo 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 ids, emails and names of all users in account

Arguments

ArgumentTypeDescription
searchStringFilter by first name, last name or email address
offsetInt
beforeString
afterString
firstInt
lastInt

Returns

UserBasicInfoConnection

Example

query GetUsersBasicInfo {
  getUsersBasicInfo {
    totalCount
    edgeCount
  }
}

Related types

UserBasicInfoConnection

getUsersInAccount (query)

getUsersInAccount 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.

Arguments

ArgumentTypeDescription
roles[String]Filter by user roles
searchStringFilter by first name, last name or email address
orderBy[String]Order by fields. Use camelCase and '-' for desc. e.g. ['email', '-role']
authorizationGroups[String]Filter by authorization group names
userIdStringFilter by user's Cognito user ID
offsetInt
beforeString
afterString
firstInt
lastInt
emailString
firstNameString
lastNameString
roleString

Returns

UserConnection

Example

query GetUsersInAccount {
  getUsersInAccount {
    totalCount
    edgeCount
  }
}

Related types

UserConnection

ssoRecoveryCodeStatus (query)

ssoRecoveryCodeStatus 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

Status of the account's SSO recovery codes: how many are currently active (unused and unrevoked) and whether the account opted out of code prompts by revoking. Requires the Edit SSO Settings permission.

Returns

SsoRecoveryCodeStatus

Example

query SsoRecoveryCodeStatus {
  ssoRecoveryCodeStatus {
    activeCount
    hasActiveCodes
    optedOut
    viewerRecoveryBlocked
  }
}

Types used only by ssoRecoveryCodeStatus

SsoRecoveryCodeStatus

Object type.

FieldTypeDescription
activeCountInt!Number of recovery codes currently active (unused and unrevoked) for the account.
hasActiveCodesBoolean!Whether the account has any active recovery codes.
optedOutBoolean!Whether the account explicitly opted out of SSO recovery-code prompts by revoking its codes. While opted out, saving changes to an existing SSO configuration is not gated on holding codes; generating a new set opts back in. Initial SSO setup always requires codes, opted out or not.
viewerRecoveryBlockedBoolean!Whether SSO recovery is unavailable to the REQUESTING user — unlike the sibling fields, which are account-scoped. True when their email's password identity is actively owned by another Monte Carlo account, which makes both recovery-code redemption and the password-reset fallback fail closed for them. Resolution is lazy — the Cognito lookup runs only when the client selects this field — and fails soft: a lookup fault reads as false rather than failing the status query.

testDnsLookup (query)

testDnsLookup 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.

Performs a DNS lookup for the specified host name

Arguments

ArgumentTypeDescription
hostStringHost to check
portIntOptional port to use
ignoreAgentBooleanPerform the DNS Lookup in the platform service, even if a remote agent is configured
serviceUuidUUIDPlatform Service UUID. To disambiguate accounts with multiple services

Returns

TestConnectionResponse

Example

query TestDnsLookup {
  testDnsLookup {
    success
  }
}

Related types

TestConnectionResponse, UUID

Mutations

configureMetadataEvents (mutation)

configureMetadataEvents 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.

Configure collection of metadata via S3 events

Arguments

ArgumentTypeDescription
connectionTypeString!Type of data lake connection (e.g. hive-s3)
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
nameStringProvide a friendly name for the warehouse when creating

Returns

ConfigureMetadataEvents

Example

mutation ConfigureMetadataEvents($connectionType: String!) {
  configureMetadataEvents(connectionType: $connectionType) {
    success
  }
}

Types used only by configureMetadataEvents

ConfigureMetadataEvents

Object type. Configure collection of metadata via S3 events

FieldTypeDescription
successBoolean

Related types

UUID

configureQueryLogEvents (mutation)

configureQueryLogEvents 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.

Configure collection of query logs via S3 events

Arguments

ArgumentTypeDescription
assumableRoleString!AWS role that can be assumed by the DC
connectionTypeString!Type of data lake connection (e.g. hive-s3)
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
externalIdStringAn external id, per assumable role conditions
formatTypeString!Log file format (e.g. hive-emr)
locationStringLocation of the log files
mappingJSONStringA map where keys are the attributes in the destinationschema and values are the keys in the source schema
nameStringProvide a friendly name for the warehouse when creating
sourceFormatStringFile format (e.g. "json")

Returns

ConfigureQueryLogEvents

Example

mutation ConfigureQueryLogEvents($assumableRole: String!, $connectionType: String!, $formatType: String!) {
  configureQueryLogEvents(assumableRole: $assumableRole, connectionType: $connectionType, formatType: $formatType) {
    success
  }
}

Types used only by configureQueryLogEvents

ConfigureQueryLogEvents

Object type. Configure collection of query logs via S3 events

FieldTypeDescription
successBoolean

Related types

JSONString, UUID

confirmSsoRecoveryCodes (mutation)

confirmSsoRecoveryCodes 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

Confirm a freshly generated SSO recovery-code set by entering one of its codes back; the submitted code is consumed. Required after every generate or regenerate so the account's active set is always a proven-saved one.

Arguments

ArgumentTypeDescription
codeString!One of the account's active recovery codes, entered back to confirm the freshly generated set was saved. The submitted code is consumed.

Returns

ConfirmSsoRecoveryCodes

Example

mutation ConfirmSsoRecoveryCodes($code: String!) {
  confirmSsoRecoveryCodes(code: $code) {
    activeCount
  }
}

Types used only by confirmSsoRecoveryCodes

ConfirmSsoRecoveryCodes

Object type.

FieldTypeDescription
activeCountInt!Number of active recovery codes remaining after the confirmed code is consumed.

createAccessToken (mutation)

createAccessToken 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.

Generate an API Access Token and associate to user

Arguments

ArgumentTypeDescription
commentStringAny comment or description to help identify the token
expirationInDaysInt!Number of days before the token auto expires

Returns

CreateAccessToken

Example

mutation CreateAccessToken($expirationInDays: Int!) {
  createAccessToken(expirationInDays: $expirationInDays) {
    accessToken {
      id
      token
    }
  }
}

Types used only by createAccessToken

CreateAccessToken

Object type. Generate an API Access Token and associate to user

FieldTypeDescription
accessTokenAccessToken

Related types

AccessToken

createOrUpdateSamlIdentityProvider (mutation)

createOrUpdateSamlIdentityProvider 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.

Arguments

ArgumentTypeDescription
accountIdentifierStringAn account identifier authorized by the IdP
defaultAuthorizationGroups[String]One or more authorization group names to assign to new SSO users who do not have an invite. If none/not set, it means new users must wait to be assigned group to gain any access.
domains[String]!A list of domains authorized by the IdP
metadataStringThe metadata in XML format, encoded as base64
metadataUrlStringThe URL of the metadata file
recoveryCodeConfirmationStringOne of the account's active SSO recovery codes, confirming the admin has saved them; the submitted code is consumed. Required on the first SSO enable — generate a set with generateSsoRecoveryCodes first. Editing an existing configuration needs no confirmation as long as an active set exists.

Returns

CreateOrUpdateSamlIdentityProvider

Example

mutation CreateOrUpdateSamlIdentityProvider($domains: [String]!) {
  createOrUpdateSamlIdentityProvider(domains: $domains) {
    account {
      id
      uuid
      name
      createdOn
      config
      allowNonSsoLogin
      dataShare
      isDeleted
      pendingDeletion
      frozenAt
      entitlements
      enableExceptionManagement
      enablePlatformAgentDomainFiltering
      agentRawDataAccessMode
      piiInventoryAccessMode
      enablePrAgentPaidTier
      enablePrAgentMetering
      enableProactiveTuneCreatorNotifications
      enableCostAgentPaidTier
      agentMonitorDefaultCollectionLagHours
    }
  }
}

Types used only by createOrUpdateSamlIdentityProvider

CreateOrUpdateSamlIdentityProvider

Object type.

FieldTypeDescription
accountAccount
jobQueuedJobThe async SSO user-migration job when the account is large enough to migrate in the background; null when it completed synchronously. Poll queuedJob(uuid) for progress.

Related types

Account, QueuedJob

createOrUpdateServiceApiToken (mutation)

createOrUpdateServiceApiToken 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.

Generate a service API Access Token

Arguments

ArgumentTypeDescription
commentStringAny comment or description to help identify the token
displayNameStringA name to show when displaying the user name
expirationInDaysIntNumber of days before the token auto expires
groups[String]Names of the groups for the API token.
tokenIdStringToken ID to edit

Returns

CreateOrUpdateServiceApiToken

Example

mutation CreateOrUpdateServiceApiToken {
  createOrUpdateServiceApiToken {
    accessToken {
      id
      token
    }
  }
}

Types used only by createOrUpdateServiceApiToken

CreateOrUpdateServiceApiToken

Object type. Generate a service API Access Token

FieldTypeDescription
accessTokenAccessToken

Related types

AccessToken

deleteAccessToken (mutation)

deleteAccessToken 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 API Access Token by ID

Arguments

ArgumentTypeDescription
tokenIdString!ID of the token to delete

Returns

DeleteAccessToken

Example

mutation DeleteAccessToken($tokenId: String!) {
  deleteAccessToken(tokenId: $tokenId) {
    success
  }
}

Types used only by deleteAccessToken

DeleteAccessToken

Object type. Delete an API Access Token by ID

FieldTypeDescription
successBooleanIf the token was successfully deleted

deleteAllUserApiKeys (mutation)

deleteAllUserApiKeys 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: General availability

Delete all of a user's personal API keys (account admin).

Arguments

ArgumentTypeDescription
userIdID!cognito_user_id of the target user, who must be in your account.

Returns

DeleteAllUserApiKeys

Example

mutation DeleteAllUserApiKeys($userId: ID!) {
  deleteAllUserApiKeys(userId: $userId) {
    deletedCount
  }
}

Types used only by deleteAllUserApiKeys

DeleteAllUserApiKeys

Object type. Delete all personal API keys belonging to a user in your account (account admin).

FieldTypeDescription
deletedCountInt!The number of API keys that were deleted.

deleteEventOnboardingData (mutation)

deleteEventOnboardingData 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 stored event onboarding configuration

Returns

DeleteEventOnboardingData

Example

mutation DeleteEventOnboardingData {
  deleteEventOnboardingData {
    success
  }
}

Types used only by deleteEventOnboardingData

DeleteEventOnboardingData

Object type. Delete stored event onboarding configuration

FieldTypeDescription
successBooleanIndicates whether the event onboarding data was deleted successfully

deleteSamlIdentityProvider (mutation)

deleteSamlIdentityProvider 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.

Returns

DeleteSamlIdentityProvider

Example

mutation DeleteSamlIdentityProvider {
  deleteSamlIdentityProvider {
    account {
      id
      uuid
      name
      createdOn
      config
      allowNonSsoLogin
      dataShare
      isDeleted
      pendingDeletion
      frozenAt
      entitlements
      enableExceptionManagement
      enablePlatformAgentDomainFiltering
      agentRawDataAccessMode
      piiInventoryAccessMode
      enablePrAgentPaidTier
      enablePrAgentMetering
      enableProactiveTuneCreatorNotifications
      enableCostAgentPaidTier
      agentMonitorDefaultCollectionLagHours
    }
  }
}

Types used only by deleteSamlIdentityProvider

DeleteSamlIdentityProvider

Object type.

FieldTypeDescription
accountAccount
jobQueuedJobThe async SSO user-migration job when the account is large enough to migrate in the background; null when it completed synchronously. Poll queuedJob(uuid) for progress — SSO is fully torn down once it reaches a terminal status.

Related types

Account, QueuedJob

deleteUserApiKey (mutation)

deleteUserApiKey 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: General availability

Delete a specific user's personal API key (account admin).

Arguments

ArgumentTypeDescription
tokenIdID!The API key id to delete.
userIdID!cognito_user_id of the target user, who must be in your account.

Returns

DeleteUserApiKey

Example

mutation DeleteUserApiKey($tokenId: ID!, $userId: ID!) {
  deleteUserApiKey(tokenId: $tokenId, userId: $userId) {
    deleted
  }
}

Types used only by deleteUserApiKey

DeleteUserApiKey

Object type. Delete a specific personal API key belonging to a user in your account (account admin).

FieldTypeDescription
deletedBoolean!Whether the API key was deleted.

deleteUserInvite (mutation)

deleteUserInvite 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 user invite

Arguments

ArgumentTypeDescription
emails[String]!List of email addresses to invite

Returns

DeleteUserInvite

Example

mutation DeleteUserInvite($emails: [String]!) {
  deleteUserInvite(emails: $emails) {
    success
  }
}

Types used only by deleteUserInvite

DeleteUserInvite

Object type.

FieldTypeDescription
successBooleanIndicates whether the operation was completed successfully

disableMetadataEvents (mutation)

disableMetadataEvents 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.

Disable collection of metadata via S3 events

Arguments

ArgumentTypeDescription
nameStringResource name (required if more than one is present

Returns

DisableMetadataEvents

Example

mutation DisableMetadataEvents {
  disableMetadataEvents {
    success
  }
}

Types used only by disableMetadataEvents

DisableMetadataEvents

Object type. Disable collection of metadata via S3 events

FieldTypeDescription
successBoolean

disableQueryLogEvents (mutation)

disableQueryLogEvents 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.

Disable collection of query logs via S3 events

Arguments

ArgumentTypeDescription
dcIdUUIDDC UUID. To disambiguate accounts with multiple collectors
nameStringResource name (required if more than one is present

Returns

DisableQueryLogEvents

Example

mutation DisableQueryLogEvents {
  disableQueryLogEvents {
    success
  }
}

Types used only by disableQueryLogEvents

DisableQueryLogEvents

Object type. Disable collection of query logs via S3 events

FieldTypeDescription
successBoolean

Related types

UUID

disableUser (mutation)

disableUser 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.

Disable a user

Arguments

ArgumentTypeDescription
emailString!Email address of user

Returns

DisableUser

Example

mutation DisableUser($email: String!) {
  disableUser(email: $email) {
    user {
      id
      cognitoUserId
      email
      firstName
      lastName
      displayName
      state
      createdOn
      isSso
      ssoGroups
      ssoGroupsUpdatedAt
      tokenId
      isDeleted
      deletedAt
      deleteReason
      invalidatedAt
      persona
      role
    }
  }
}

Types used only by disableUser

DisableUser

Object type.

FieldTypeDescription
userUser

Related types

User

generateSsoRecoveryCodes (mutation)

generateSsoRecoveryCodes 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

Generate a fresh set of single-use SSO recovery codes for the account, invalidating any previously active set. The plaintext codes are returned once. Generating also opts the account back into recovery-code prompts if it had opted out by revoking.

Returns

GenerateSsoRecoveryCodes

Example

mutation GenerateSsoRecoveryCodes {
  generateSsoRecoveryCodes {
    codes
  }
}

Types used only by generateSsoRecoveryCodes

GenerateSsoRecoveryCodes

Object type.

FieldTypeDescription
codes[String!]!The full set of newly generated recovery codes, in plaintext. Returned only once at creation — they are stored hashed and cannot be retrieved again, so the caller must surface them to the user immediately. Any previously active set is invalidated.

inviteUsers (mutation)

inviteUsers 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.

DEPRECATED: use inviteUsersV2

Arguments

ArgumentTypeDescription
inputInviteUsersInput!

Returns

InviteUsersPayload

Example

mutation InviteUsers($input: InviteUsersInput!) {
  inviteUsers(input: $input) {
    clientMutationId
  }
}

Types used only by inviteUsers

InviteUsersInput

Input object type.

FieldTypeDescription
emails[String]!
clientMutationIdString
InviteUsersPayload

Object type.

FieldTypeDescription
users[UserInvite]
clientMutationIdString

Related types

UserInvite

inviteUsersV2 (mutation)

inviteUsersV2 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.

Invite users to the account

Arguments

ArgumentTypeDescription
authGroups[String]Names of groups to add the user to upon acceptance. Optional for SSO/SCIM accounts, where access is governed by the identity provider on login (for example, when reinstating a previously-removed user); required otherwise.
emails[String]!List of email addresses to invite
invitationTypeInvitationTypeType of invitation to send--typically maps to product.

Returns

InviteUsersV2

Example

mutation InviteUsersV2($emails: [String]!) {
  inviteUsersV2(emails: $emails) {
    existingUsers
    alreadyInvited
  }
}

Types used only by inviteUsersV2

InvitationType

Enum type. Used to select the template to use for new user invites.

ValueDescription
Observability
InviteUsersV2

Object type.

FieldTypeDescription
invites[UserInvite]List of users invites sent
existingUsers[String]List of email addresses of users who already exist and cannot be invited
alreadyInvited[String]List of email addresses already invited to this account or another account

Related types

UserInvite

resendUserInvite (mutation)

resendUserInvite 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.

Resend user invite

Arguments

ArgumentTypeDescription
emails[String]!List of email addresses to resend the invitation

Returns

ReInviteUsers

Example

mutation ResendUserInvite($emails: [String]!) {
  resendUserInvite(emails: $emails) {
    existingUsers
  }
}

Types used only by resendUserInvite

ReInviteUsers

Object type.

FieldTypeDescription
invites[UserInvite]List of users to resend invites
existingUsers[String]List of email addresses of users who already exist and cannot be invited

Related types

UserInvite

revokeAllUserAuthorizedClients (mutation)

revokeAllUserAuthorizedClients 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

Revoke all of a user's OAuth/MCP client authorizations at once, forcing the user to re-authenticate every client on next use. Returns the number revoked. Requires permission to edit users (settings/users/edit).

Arguments

ArgumentTypeDescription
userIdString!cognito_user_id of the target user, who must be in your account.

Returns

RevokeAllUserAuthorizedClients

Example

mutation RevokeAllUserAuthorizedClients($userId: String!) {
  revokeAllUserAuthorizedClients(userId: $userId) {
    ok
    revokedCount
  }
}

Types used only by revokeAllUserAuthorizedClients

RevokeAllUserAuthorizedClients

Object type.

FieldTypeDescription
okBoolean
revokedCountIntNumber of client authorizations revoked.

revokeSsoRecoveryCodes (mutation)

revokeSsoRecoveryCodes 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

Invalidate all of the account's active SSO recovery codes. An explicit revoke also opts the account out of recovery-code prompts: saving changes to an existing SSO configuration is no longer gated on holding codes until a new set is generated. Initial SSO setup still requires codes.

Returns

RevokeSsoRecoveryCodes

Example

mutation RevokeSsoRecoveryCodes {
  revokeSsoRecoveryCodes {
    revokedCount
  }
}

Types used only by revokeSsoRecoveryCodes

RevokeSsoRecoveryCodes

Object type.

FieldTypeDescription
revokedCountInt!Number of active recovery codes that were invalidated by this call.

revokeUserAuthorizedClient (mutation)

revokeUserAuthorizedClient 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

Revoke a user's authorization for a single OAuth/MCP client (a WorkOS Connect grant), forcing the user to re-authenticate that client on next use. Requires permission to edit users (settings/users/edit).

Arguments

ArgumentTypeDescription
applicationIdString!Which authorized client to revoke. Accepts either the applicationId (recommended) or the clientId from getUserAuthorizedClients — these are distinct identifiers for the client; see those fields.
userIdString!cognito_user_id of the target user, who must be in your account.

Returns

RevokeUserAuthorizedClient

Example

mutation RevokeUserAuthorizedClient($applicationId: String!, $userId: String!) {
  revokeUserAuthorizedClient(applicationId: $applicationId, userId: $userId) {
    ok
  }
}

Types used only by revokeUserAuthorizedClient

RevokeUserAuthorizedClient

Object type.

FieldTypeDescription
okBoolean

saveEventOnboardingData (mutation)

saveEventOnboardingData 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.

Save event onboarding configuration

Arguments

ArgumentTypeDescription
configJSONString!JSON Key/values with event config to store

Returns

SaveEventOnboardingData

Example

mutation SaveEventOnboardingData($config: JSONString!) {
  saveEventOnboardingData(config: $config) {
    success
  }
}

Types used only by saveEventOnboardingData

SaveEventOnboardingData

Object type. Save event onboarding configuration

FieldTypeDescription
successBooleanIndicates whether the event onboarding data was saved successfully

Related types

JSONString

setAccountMaxTimeSeries (mutation)

setAccountMaxTimeSeries 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

Set the maximum number of time series for the account.

Arguments

ArgumentTypeDescription
maxTimeSeriesInt!

Returns

SetMaxTimeSeries

Example

mutation SetAccountMaxTimeSeries($maxTimeSeries: Int!) {
  setAccountMaxTimeSeries(maxTimeSeries: $maxTimeSeries) {
    success
  }
}

Types used only by setAccountMaxTimeSeries

SetMaxTimeSeries

Object type.

FieldTypeDescription
successBoolean

setAccountName (mutation)

setAccountName 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.

Arguments

ArgumentTypeDescription
accountNameString!

Returns

SetAccountName

Example

mutation SetAccountName($accountName: String!) {
  setAccountName(accountName: $accountName) {
    account {
      id
      uuid
      name
      createdOn
      config
      allowNonSsoLogin
      dataShare
      isDeleted
      pendingDeletion
      frozenAt
      entitlements
      enableExceptionManagement
      enablePlatformAgentDomainFiltering
      agentRawDataAccessMode
      piiInventoryAccessMode
      enablePrAgentPaidTier
      enablePrAgentMetering
      enableProactiveTuneCreatorNotifications
      enableCostAgentPaidTier
      agentMonitorDefaultCollectionLagHours
    }
  }
}

Types used only by setAccountName

SetAccountName

Object type.

FieldTypeDescription
accountAccount

Related types

Account

setTutorialState (mutation)

setTutorialState 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

Sets the state of a tutorial

Arguments

ArgumentTypeDescription
stateTutorialStatusType!initial, started, completed, invalid
tutorialNameString!The name of the tutorial which includes the step

Returns

SetTutorialState

Example

mutation SetTutorialState($state: TutorialStatusType!, $tutorialName: String!) {
  setTutorialState(state: $state, tutorialName: $tutorialName) {
    success
  }
}

Types used only by setTutorialState

SetTutorialState

Object type. Set the state of a tutorial step

FieldTypeDescription
successBooleanStep status change success

Related types

TutorialStatusType

switchUserAccount (mutation)

switchUserAccount 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.

User can switch accounts if provided with valid invite

Arguments

ArgumentTypeDescription
switchToAccountIdUUID!
verificationTokenString!

Returns

SwitchUserAccount

Example

mutation SwitchUserAccount($switchToAccountId: UUID!, $verificationToken: String!) {
  switchUserAccount(switchToAccountId: $switchToAccountId, verificationToken: $verificationToken) {
    newAccount {
      id
      uuid
      name
      createdOn
      config
      allowNonSsoLogin
      dataShare
      isDeleted
      pendingDeletion
      frozenAt
      entitlements
      enableExceptionManagement
      enablePlatformAgentDomainFiltering
      agentRawDataAccessMode
      piiInventoryAccessMode
      enablePrAgentPaidTier
      enablePrAgentMetering
      enableProactiveTuneCreatorNotifications
      enableCostAgentPaidTier
      agentMonitorDefaultCollectionLagHours
    }
  }
}

Types used only by switchUserAccount

SwitchUserAccount

Object type.

FieldTypeDescription
newAccountAccount

Related types

Account, UUID

toggleAccountFeature (mutation)

toggleAccountFeature 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.

Enable/disable an account level feature

Arguments

ArgumentTypeDescription
featureString!Feature to enable/disable
isEnabledBoolean!Enable or disable the feature

Returns

ToggleAccountFeature

Example

mutation ToggleAccountFeature($feature: String!, $isEnabled: Boolean!) {
  toggleAccountFeature(feature: $feature, isEnabled: $isEnabled) {
    success
  }
}

Types used only by toggleAccountFeature

ToggleAccountFeature

Object type. Enable/disable an account level feature

FieldTypeDescription
successBooleanIndicates whether the feature was enabled or disabled successfully

toggleEventConfig (mutation)

toggleEventConfig 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.

Enable / disable the configuration for data collection via events

Arguments

ArgumentTypeDescription
assumableRoleStringAWS role that can be assumed by the DC
connectionIdUUIDThe connection id. Cannot be present with DW ID
connectionTypeStringType of connection (e.g. hive-s3), required if connection id not set
dwIdUUIDThe warehouse id. Cannot be present with connection ID
enableBoolean!If true enable the connection, otherwise disable it
eventTypeDataCollectorEventTypes!Type of event (e.g. metadata)
externalIdStringAn external id, per assumable role conditions
formatTypeStringLog file format (e.g. hive-emr)
locationStringLocation of the log files
mappingJSONStringA map where keys are the attributes in the destinationschema and values are the keys in the source schema
sourceFormatStringFile format (e.g. "json")

Returns

ToggleEventConfig

Example

mutation ToggleEventConfig($enable: Boolean!, $eventType: DataCollectorEventTypes!) {
  toggleEventConfig(enable: $enable, eventType: $eventType) {
    success
  }
}

Types used only by toggleEventConfig

DataCollectorEventTypes

Enum type.

ValueDescription
s3_metadata_events
s3_ql_events
ToggleEventConfig

Object type. Enable / disable the configuration for data collection via events

FieldTypeDescription
successBoolean

Related types

JSONString, UUID

toggleMuteDataset (mutation)

toggleMuteDataset 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: Deprecated

Start/Stop creating incidents for the given dataset

Arguments

ArgumentTypeDescription
inputToggleMuteDatasetInput!

Returns

ToggleMuteDatasetPayload

Example

mutation ToggleMuteDataset($input: ToggleMuteDatasetInput!) {
  toggleMuteDataset(input: $input) {
    clientMutationId
  }
}

Types used only by toggleMuteDataset

ToggleMuteDatasetInput

Input object type.

FieldTypeDescription
dwIdUUID!Warehouse the dataset is contained in.
dsIdUUID!ID of the dataset.
muteBoolean!True for muting the table, False for un-muting
mutedEventTypes[MutedEventType]Restrict muting to the following event types (optional)
clientMutationIdString
ToggleMuteDatasetPayload

Object type. Start/Stop creating incidents for the given dataset

FieldTypeDescription
mutedDataset
clientMutationIdString

Related types

Dataset, MutedEventType, UUID

Source: The GraphQL API reference

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