Applications

Grant a list of organization access of a user for a application.

Grant a list of organization access of a user for a application by application id and user id. <br/> The user must be a member of all the organizations. <br/> Only third-party application needs to be granted access to organizations, all the other applications can request for all the organizations' access by default.

post/api/applications/{id}/users/{userId}/consent-organizations

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/applications/{id}/users/{userId}/consent-organizations
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

idstring required

The unique identifier of the application.

userIdstring required

The unique identifier of the user.

Request body

organizationIdsstring[] required

A list of organization ids to be granted.

Response

All the request organizations's access are granted to the user for the application.

Changes

No recorded changes to this operation across all 8 revisions of this API.