userCreate
Create a user. The userCreate mutation in Bunny's GraphQL API, with its input attributes, return type and an example request.
Scope required: security:write
For a complete list of input attributes see the UserAttributes type
mutation userCreate ($attributes: UserAttributes!) {
userCreate (attributes: $attributes) {
errors
user {
allowLoginViaEmailLink
createdAt
email
emailBody
emailSubject
enabled
entityId
firstName
fullName
groupId
id
imageUrl
lastLogin
lastName
managerUserId
name
roleId
title
updatedAt
uuid
}
}
}
ArgumentsLink to Arguments section
{
"attributes": {
"uuid": "456123",
"managerUserId": "456123",
"firstName": "",
"lastName": "",
"email": "",
"phone": "",
"title": "",
"timezone": "",
"roleId": "456123",
"groupId": "456123",
"profile": {
"phone": "",
"title": "",
"timezone": "",
"tabnameIsSubdomain": true
},
"enabled": true,
"allowLoginViaEmailLink": true,
"sendLoginLink": true,
"entityId": "456123",
"emailSubject": "",
"emailBody": ""
}
}
| Name | Type | Description |
|---|---|---|
| attributes | UserAttributes |
ResponseLink to Response section
| Name | Type | Description |
|---|---|---|
| errors | List (String) | |
| user | User |