Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Replace Group Provider Info

PUT/api/v2/admin/groups/{groupId}/providerInfo
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Replace the GroupProviderInfo.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:admin-write.

Path parameters

groupId
string

The ID of a Foundry Group or User.

Query parameters

preview
boolean
optional

Enables the use of preview functionality.

Request body

ReplaceGroupProviderInfoRequest
object
Hide child attributes

Hide child attributes

providerId
string

The ID of the Group in the external authentication provider. This value is determined by the authentication provider. At most one Group can have a given provider ID in a given Realm.

Response body

GroupProviderInfo
object

The replaced GroupProviderInfo

Hide child attributes

Hide child attributes

providerId
string

The ID of the Group in the external authentication provider. This value is determined by the authentication provider. At most one Group can have a given provider ID in a given Realm.

Examples

Request

Copied!
1 2 3 4 5 curl -X PUT \ -H "Content-type: application/json" \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/admin/groups/f05f8da4-b84c-4fca-9c77-8af0b13d11de/providerInfo?preview=true" \ -d '{"providerId":"2838c8f3-d76a-4e99-acf1-1dee537e4c48"}'

Response

Copied!
1 2 3 { "providerId": "2838c8f3-d76a-4e99-acf1-1dee537e4c48" }

Error responses

Error Name
GetGroupProviderInfoPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionThe provided token does not have permission to view the provider information for the given group.
ParametersgroupId
CannotReplaceProviderInfoForPrincipalInProtectedRealmError CodeINVALID_ARGUMENT
Status Code400
DescriptionProvider information for Principals in this Realm cannot be replaced.
ParametersprincipalId, realm
ReplaceGroupProviderInfoPermissionDeniedError CodePERMISSION_DENIED
Status Code403
DescriptionCould not replace the GroupProviderInfo.
ParametersgroupId
GroupNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given Group could not be found.
ParametersgroupId
GroupProviderInfoNotFoundError CodeNOT_FOUND
Status Code404
DescriptionThe given GroupProviderInfo could not be found.
ParametersgroupId