Skip to content
innovorder
⌘K

Identity & access

User Profile & Roles

System map · Role resolution
User profile
Roles
API access

Retrieve information about the authenticated user to determine their context and permissions. The response structure varies slightly depending on the user's Role.

Brand Group User
role: "brandGroup"

Manages a holding or franchise group. Has a brandGroupId. Can access multiple brands.

Brand User
role: "brand"

Manages a specific brand. Has a brandId. Full access to the brand and all its restaurants.

Restaurant User
role: "restaurant"

Restricted to specific locations. Has access to one or more restaurants listed in the restaurants array.

GET/oauth/meGet Current User

Retrieve detailed information about the currently authenticated user.

Response

json
{
  "status": 200,
  "code": "user_succeed",
  "data": {
    "userId": 100500,
    "firstName": "Admin User",
    "email": "admin@innovorder.com",
    "role": "brand",
    "brandId": 100,
    "brandGroupId": null,
    "accessFlags": {
      "CAN_EDIT_AREAS": true,
      "MENU_EDIT": true
    },
    "brands": [
      {
        "brandId": 100,
        "name": "Innovorder Burgers"
      }
    ],
    "restaurants": [
      {
        "restaurantId": 200,
        "name": "Innovorder Burgers Paris"
      }
    ]
  }
}
Response Properties

Every field in the example is listed below. Explicit requiredness is shown when the endpoint contract defines it.

PropertyTypeExampleDescription
statusinteger200HTTP status code returned by the API.
codestring"user_succeed"Machine-readable application code for the result.
dataobject{…}Endpoint-specific response payload.
data.userIdinteger100500Identifier of the user.
data.firstNamestring"Admin User"The first name value.
data.emailstring"admin@innovorder.com"Email address.
data.rolestring"brand"The role value.
data.brandIdinteger100Identifier of the brand.
data.brandGroupIdnullnullIdentifier of the associated brand group.
data.accessFlagsobject{…}Object containing access flags fields.
data.accessFlags.CAN_EDIT_AREASbooleantrueThe can edit areas value.
data.accessFlags.MENU_EDITbooleantrueThe menu edit value.
data.brandsarray[…]List of brands entries.
data.brands[]object{…}Object containing brands fields.
data.brands[].brandIdinteger100Identifier of the brand.
data.brands[].namestring"Innovorder Burgers"The name value.
data.restaurantsarray[…]List of restaurants entries.
data.restaurants[]object{…}Object containing restaurants fields.
data.restaurants[].restaurantIdinteger200Identifier of the restaurant.
data.restaurants[].namestring"Innovorder Burgers Paris"The name value.

Key Context Fields

role
Determines the user's scope.
  • brandGroup: Root level access. Use the Brand Groups section to navigate.
  • brand: Brand level access. Use brandId for API calls.
  • restaurant: Location level access. Use restaurants list to find accessible restaurantIds.
accessFlags
A map of boolean flags representing specific granular permissions (e.g., MENU_EDIT).