# Grant a list of organization access of a user for a application. **POST /api/applications/{id}/users/{userId}/consent-organizations** Grant a list of organization access of a user for a application by application id and user id.
The user must be a member of all the organizations.
Only third-party application needs to be granted access to organizations, all the other applications can request for all the organizations' access by default. ## Servers - Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **id** (string) The unique identifier of the application. - **userId** (string) The unique identifier of the user. ### Body: application/json (object) - **organizationIds** (array[string]) A list of organization ids to be granted. ## Responses ### 201 All the request organizations's access are granted to the user for the application. ### 400 Bad Request ### 401 Unauthorized ### 403 Forbidden ### 404 The application or user is not found. ### 422 The user is not a member of one of the organizations, or the application is not a third-party application. [Powered by Bump.sh](https://bump.sh)