Skip to main content
GET
/
role
/
user
/
{userId}
/
privilege-groups
Get User Privilege Groups By User Id
curl --request GET \
  --url https://apigw.bienport.com/api/role/user/{userId}/privilege-groups \
  --header 'Authorization: <authorization>' \
  --header 'OrganizationId: <organizationid>'
{
  "userId": 20199,
  "userPrivilegeValidity": {
    "id": 147,
    "accessibleDays": [
      {
        "dayOfWeek": 3,
        "start": 155000,
        "end": 451000
      }
    ],
    "expiration": 1646639127000,
    "validityStart": 1678088727000
  },
  "userPrivilegeGroups": [
    {
      "id": 268,
      "privilegeGroupId": 2,
      "authority": true,
      "scopePk": 31547
    }
  ]
}

Headers

Authorization
string
required

Access Token

OrganizationId
string
required

Organization ID

Path Parameters

userId
integer<int64>
required

userId

Response

User Privilege Groups and Validities Response.

userId
integer<int64>

User ID.

Example:

20199

userPrivilegeValidity
UserPrivilegeValidityResponse · object
userPrivilegeGroups
UserPrivilegeGroupResponse · object[]

User privilege groups.