Skip to Content
StoreOSv0.27.1
Core GraphQL APIReferenceQueries

Identity__me

Requires a signed-in staff user.

QUERYidentity__me: User

Requires a signed-in staff user.

Returns

  1. identity__me
_id*ID!
accountStatus?UserAccountStatus
Value inACTIVEINACTIVESUSPENDED
authProviders?
avatar?
commits?
createdAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

email?String
lastLoginAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

memberships?
mustChangePassword?Boolean
name?String
notices?
phoneNumber?String
phoneVerifiedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

shippingAddress?
systemRoles?[String!]
updatedAt?DateTime

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

Example Request
query Identity__me {  identity__me {    _id    accountStatus    authProviders {      email      linkedAt      provider      subject    }    avatar {      alt      external      fileAssetId      key      provider    }    createdAt    email    lastLoginAt    mustChangePassword    name    phoneNumber  }}
Example Response
{  "data": {    "identity__me": {      "_id": "1",      "accountStatus": "ACTIVE",      "authProviders": [        {          "email": "string",          "linkedAt": "<DateTime>",          "provider": "GOOGLE",          "subject": "string"        }      ],      "avatar": {        "alt": "string",        "external": "string",        "fileAssetId": "1",        "key": "string",        "provider": "CLOUDINARY"      },      "createdAt": "<DateTime>",      "email": "string",      "lastLoginAt": "<DateTime>",      "mustChangePassword": true,      "name": "string",      "phoneNumber": "string"    }  }}