Skip to content

Commit

Permalink
chore: add syntax hightlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
brnhensley authored Oct 14, 2024
1 parent 454df8c commit 2f98f43
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions src/content/docs/apis/nerdgraph/examples/nerdgraph-manage-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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 {
Expand All @@ -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
Expand All @@ -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
}
Expand All @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2f98f43

Please sign in to comment.