User

Get the signed-in user

get

Requires user to be authenticated.

Responses
200

The user profile information, assigned roles and organizations

application/json
get
GET /api/me HTTP/1.1
Host: api.switchmarket.se
Accept: */*
{
  "user": {
    "id": 1,
    "externalId": "text",
    "type": 0,
    "userName": "text",
    "email": "text",
    "displayName": "text",
    "phoneNumber": "text",
    "firstName": "text",
    "lastName": "text",
    "verifyInfoAfter": "2025-09-16T12:57:16.335Z",
    "culture": "text",
    "timeZone": "text",
    "allowedPhoneWeekdays": [
      true
    ],
    "allowedPhoneMonths": [
      true
    ],
    "allowedPhoneHours": [
      true
    ],
    "autoCreated": true,
    "roleIds": [
      1
    ],
    "groupsRoleIds": [
      1
    ],
    "groups": [
      {
        "id": 1,
        "name": "text",
        "organizationId": 1
      }
    ]
  },
  "roles": [
    {
      "id": 1,
      "name": "text",
      "organizationId": 1,
      "rolePermissions": [
        {
          "id": "text",
          "resource": "text",
          "scope": 0,
          "permission": 0
        }
      ]
    }
  ],
  "organizations": [
    {
      "organizationId": 1,
      "name": "text"
    }
  ]
}

Was this helpful?