---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:resolveAuthorization"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:resolveAuthorization"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:resolveAuthorization

`POST /v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:resolveAuthorization`

## Request

- Base URL: `https://agentidentity.googleapis.com`
- URL: `https://agentidentity.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/authProviders/{authProvidersId}:resolveAuthorization`
- Auth: OAuth 2 and OAuth 2
  - Implicit: `https://accounts.google.com/o/oauth2/auth`
  - Scopes: `https://www.googleapis.com/auth/cloud-platform`
  - Authorization code: `https://accounts.google.com/o/oauth2/auth`
  - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`

Resolves an authorization for a user on an auth provider, creating one if it does not exist or returning an existing one.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `authProvidersId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- ResolveAuthorizationRequest: Request message for `ResolveAuthorization`.
  - `clientUserId` string: Required. The user ID of the client for whom the authorization is resolved.

## Response `200`

Successful response

- ResolveAuthorizationResponse: Response message for `ResolveAuthorization`.
  - `authorization` string: The resource name of the resolved authorization. Format: projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}

---

[API](https://skmtc.dev/google/apis/agentidentity.md) - [All operations](https://skmtc.dev/google/apis/agentidentity/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/agentidentity/revisions/f532280f07f9?raw)
