---
title: "Update One Organization Configuration in One Federation"
method: PATCH
path: "/api/atlas/v2/federationSettings/{federationSettingsId}/connectedOrgConfigs/{orgId}"
tags: ["Federated Authentication"]
---

# Update One Organization Configuration in One Federation

`PATCH /api/atlas/v2/federationSettings/{federationSettingsId}/connectedOrgConfigs/{orgId}`

Updates one connected organization configuration from the specified federation.

**Note** If the organization configuration has no associated identity provider, you can't use this resource to update role mappings or post authorization role grants.  

**Note**: The `domainRestrictionEnabled` field defaults to false if not provided in the request. 

**Note**: If the `identityProviderId` field is not provided, you will disconnect the organization and the identity provider. 

**Note**: Currently connected data access identity providers missing from the `dataAccessIdentityProviderIds` field will be disconnected.

## Path parameters

- `federationSettingsId` string, required
- `orgId` string, required

## Query parameters

- `envelope` boolean

## Response `200`

OK

## Other responses

- `400` — Bad Request.
- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not Found.
- `429` — Too Many Requests.
- `500` — Internal Server Error.

---

[API](https://skmtc.dev/mongodb/apis/atlas-admin-api.md) · [All operations](https://skmtc.dev/mongodb/apis/atlas-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mongodb/atlas-admin-api/revisions/e37e8ef8429f/schema)
