me
Retrieve the currently authenticated user.
me: Me
Example
- Query
- Variables
- Response
query ($appId: Int, $organizationId: Int, $organizationId2: Int) {
me {
applicationRoles(appId: $appId, organizationId: $organizationId) {
nextCursor
total
}
auth0Id
authMethod
currentIP
displayName
emailAddress
emailVerification {
email
expires
status
}
githubUsername
id
isConsideredInactive
isEmailLegacyUnverified
isEmailVerified
isVIP
isVipAuthUser
lastSeenAt
mfaMethods {
configuredMethods
preferredMethod
}
organizationRoles(organizationId: $organizationId2) {
nextCursor
total
}
samlIdentityProviderName
samlNameId
samlOrganizationId
shouldBeVIP
tokens {
active
createdAt
disabledDueToInactivity
environmentIds
exp
expiresAt
id
lastUsedAt
purpose
userId
}
trackingUserId
vipAuthId
wpcomUsername
}
}
{
"appId": 42,
"organizationId": 42,
"organizationId2": 42
}
{
"data": {
"me": {
"applicationRoles": {
"nextCursor": "nextCursor",
"total": 42
},
"auth0Id": "auth0Id",
"authMethod": "authMethod",
"currentIP": "currentIP",
"displayName": "displayName",
"emailAddress": "emailAddress",
"emailVerification": {
"email": "user@example.com",
"expires": "2024-01-15T00:00:00.000Z",
"status": "CANCELED"
},
"githubUsername": "example-user",
"id": 42,
"isConsideredInactive": true,
"isEmailLegacyUnverified": true,
"isEmailVerified": true,
"isVIP": true,
"isVipAuthUser": true,
"lastSeenAt": "2024-01-15T00:00:00.000Z",
"mfaMethods": {
"configuredMethods": [
"configuredMethods"
],
"preferredMethod": "preferredMethod"
},
"organizationRoles": {
"nextCursor": "nextCursor",
"total": 42
},
"samlIdentityProviderName": "samlIdentityProviderName",
"samlNameId": "samlNameId",
"samlOrganizationId": 42,
"shouldBeVIP": true,
"tokens": [
{
"active": true,
"createdAt": "2024-01-15T00:00:00.000Z",
"disabledDueToInactivity": true,
"environmentIds": [
42
],
"exp": 42,
"expiresAt": "2024-01-15T00:00:00.000Z",
"id": 42,
"lastUsedAt": "2024-01-15T00:00:00.000Z",
"purpose": "purpose",
"userId": 42
}
],
"trackingUserId": "trackingUserId",
"vipAuthId": "vipAuthId",
"wpcomUsername": "wpcomUsername"
}
}
}
Type
Me object common
The currently authenticated user.