Skip to content

Application authorization

Chemaxon Cloud provides /api/groups endpoint where applications can send an HTTP GET request to receive the list of available user groups within team. Request has to be authenticated using JWT token header (see Application authentication page) either for current user or service itself.

Mapping of team groups provided by Chemaxon Cloud to application roles is a responsibility of application.

Note: To try out, change team1 to your subdomain and log in to that.

Example

Request
GET /api/groups
Response
[
  {
    "id": 37,
    "realm": 33,
    "memberIds": [56],
    "groupName": "TEAM_ADMIN",
    "isTeamAdminGroup": true
  },
  {
    "id": 38,
    "realm": 33,
    "memberIds": [],
    "groupName": "RESEARCHERS",
    "isTeamAdminGroup": false
  },
  {
    "id": 39,
    "realm": 33,
    "memberIds": [],
    "groupName": "GUESTS",
    "isTeamAdminGroup": false
  }
]