Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sdk-identity/src/sdk/getUserProfile"

Index

Functions

Functions

getUserProfile

  • Returns Promise<UserProfile | APIErrorResponse>

    A Promise resolving the user's profile data. The userProfile property will be updated with this data.

    On success (resolves)
    {
      "firstName": "John",
      "lastName": "Doe",
      "secondLastName": "Dooey",
      "displayName": "john_doe",
      "gender": "MALE, FEMALE",
      "email": "john.doe@donotreply.com",
      "picture": "KEY1",
      "birthYear": "2019",
      "birthMonth": "12",
      "birthDay": "3",
      "emailVerified": true,
      "contacts": [
        {
          "phone": "555-555-5555",
          "type": "WORK, HOME, PRIMARY, OTHER"
        }
      ],
      "addresses": [
        {
          "line1": "123 Main St.",
          "line2": "string",
          "locality": "string",
          "region": "string",
          "postal": "string",
          "country": "string",
          "type": "WORK, HOME, PRIMARY, OTHER"
        }
      ],
      "attributes": [
        {
          "name": "KEY1",
          "value": "VALUE 1"
        }
      ],
      "uuid": "string"
    }
    On error (throws)
    See documentation for corresponding error codes:
    https://redirector.arcpublishing.com/alc/docs/swagger/?url=./arc-products/arc-identity-v1.json#/User_Registration/getProfile