diff --git a/src/content/docs/apis/nerdgraph/examples/nerdgraph-manage-users.mdx b/src/content/docs/apis/nerdgraph/examples/nerdgraph-manage-users.mdx index 4a46775b9d0..ab95dc770a3 100644 --- a/src/content/docs/apis/nerdgraph/examples/nerdgraph-manage-users.mdx +++ b/src/content/docs/apis/nerdgraph/examples/nerdgraph-manage-users.mdx @@ -41,7 +41,7 @@ The user type values available are: Here's an example query to see all the [user types](/docs/accounts/accounts-billing/new-relic-one-user-management/user-type) in your organization: -``` +```graphql { actor { organization { @@ -91,11 +91,14 @@ Here's an example of creating a basic user: ```graphql mutation { - userManagementCreateUser(createUserOptions: { - authenticationDomainId: "YOUR_AUTH_DOMAIN_ID", - email: "EMAIL_OF_YOUR_USER", - name: "NAME_OF_YOUR_USER", - userType: BASIC_USER_TIER}) { + userManagementCreateUser( + createUserOptions: { + authenticationDomainId: "YOUR_AUTH_DOMAIN_ID" + email: "EMAIL_OF_YOUR_USER" + name: "NAME_OF_YOUR_USER" + userType: BASIC_USER_TIER + } + ) { createdUser { authenticationDomainId email @@ -112,7 +115,7 @@ mutation { Here's an example error response when trying to create a user within an authentication domain not set for manually provisioned users: -``` +```json { "data": { "userManagementCreateUser": null @@ -127,7 +130,7 @@ Here's an example error response when trying to create a user within an authenti Here's an example error response when trying to create a user that already exists in an auth domain: -``` +```json { "data": { "userManagementCreateUser": null @@ -146,7 +149,9 @@ Here's an example of updating a user's user type to be full platform user: ```graphql mutation { - userManagementUpdateUser(updateUserOptions: {id: "ID_OF_YOUR_USER", userType: FULL_USER_TIER}) { + userManagementUpdateUser( + updateUserOptions: { id: "ID_OF_YOUR_USER", userType: FULL_USER_TIER } + ) { user { id type { @@ -162,7 +167,9 @@ Here's an example of updating a user's email address: ```graphql mutation { - userManagementUpdateUser(updateUserOptions: {id: "ID_OF_YOUR_USER", email: "EMAIL_OF_YOUR_USER"}) { + userManagementUpdateUser( + updateUserOptions: { id: "ID_OF_YOUR_USER", email: "EMAIL_OF_YOUR_USER" } + ) { user { id email @@ -179,9 +186,11 @@ For how to manage groups, and add users to groups, see [Manage user groups with Here's an example of deleting a user: -``` +```graphql mutation { - userManagementDeleteUser(deleteUserOptions: {id: "ID_OF_YOUR_USER"}) { + userManagementDeleteUser( + deleteUserOptions: { id: "ID_OF_YOUR_USER" } + ) { deletedUser { id } @@ -191,7 +200,7 @@ mutation { Here's an example error response when trying to delete a user in a SCIM-provisioned auth domain: -``` +```json { "data": { "userManagementDeleteuser": null @@ -239,7 +248,7 @@ By default, the API only returns at most 500 users or 10 authentication domains. Here's an example of starting a paginated return of all authentication domains for an organization: -``` +```graphql { actor { organization {