---
updatedAt: 2026-09-03T17:44:17.000Z
agentTools:
  siteIndex: https://developer.jamf.com/llms.txt
  projectIndex: https://developer.jamf.com/platform-api/llms.txt
---

# Add Connection

Creates an identity provider connection and assigns it to the domains and products named in the request, in a single call. Returns the created connection as `GET /connections/{connectionId}` would.

`connectionType` selects which provider settings are expected in `connection`; `connection.region` selects the region the connection is created in. `domains` must all be verified — see `POST /domains/{domainId}/actions/verify`. `enabledProducts` names the products, and the tenants of those products, the connection signs users in to; use `enabledEnvironments` instead for products scoped by environment.

Creation and assignment are applied together: if the connection is created but cannot be assigned, it is deleted again rather than left behind for you to find. Only `OIDC`, `WAAD`, `OKTA`, and `GOOGLE_APPS` connections can be created.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Jamf Account SSO API",
    "description": "Verified domains and identity provider connections for single sign-on to Jamf products",
    "version": "1.0.0",
    "termsOfService": "https://www.jamf.com/developer-resources/api-license-agreement/",
    "contact": {
      "name": "Jamf Developer",
      "url": "https://developer.jamf.com"
    }
  },
  "tags": [
    {
      "name": "connections",
      "description": "Operations for the identity provider connections of the organization resolved from the access token."
    }
  ],
  "paths": {
    "/v1/connections": {
      "post": {
        "tags": [
          "connections"
        ],
        "operationId": "addConnection",
        "summary": "Add Connection",
        "description": "Creates an identity provider connection and assigns it to the domains and products named in the request, in a single call. Returns the created connection as `GET /connections/{connectionId}` would.\n\n`connectionType` selects which provider settings are expected in `connection`; `connection.region` selects the region the connection is created in. `domains` must all be verified — see `POST /domains/{domainId}/actions/verify`. `enabledProducts` names the products, and the tenants of those products, the connection signs users in to; use `enabledEnvironments` instead for products scoped by environment.\n\nCreation and assignment are applied together: if the connection is created but cannot be assigned, it is deleted again rather than left behind for you to find. Only `OIDC`, `WAAD`, `OKTA`, and `GOOGLE_APPS` connections can be created.",
        "requestBody": {
          "required": true,
          "description": "The connection to create, and what it is enabled for.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionRequest"
              },
              "example": {
                "connectionType": "WAAD",
                "connection": {
                  "name": "Example Corp Entra",
                  "region": "US",
                  "clientId": "8f14e45f-ceea-467a-9c1e-2b3a4d5e6f70",
                  "clientSecret": "REPLACE_WITH_YOUR_CLIENT_SECRET",
                  "tokenEndpointAuthMethod": "CLIENT_SECRET_POST",
                  "domain": "example.onmicrosoft.com",
                  "tenantDomain": "example.onmicrosoft.com",
                  "identityApi": "MICROSOFT_IDENTITY_PLATFORM_V2",
                  "useWsfed": false,
                  "useCommonEndpoint": false,
                  "basicProfile": true,
                  "extendedProfile": true,
                  "enableUsersApi": false,
                  "groups": true,
                  "nestedGroups": false,
                  "groupsScope": "GROUP_READ_ALL",
                  "maxGroups": 250,
                  "setEmailsVerified": true,
                  "aliasLoginHintToIdp": true,
                  "syncUserProfileAttributesAtLogin": true
                },
                "domains": [
                  "example.com"
                ],
                "enabledProducts": [
                  {
                    "product": "PRO",
                    "enabledTenants": [
                      "tenant-9Xk2Lp"
                    ]
                  },
                  {
                    "product": "ACCOUNT",
                    "enabledTenants": []
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created connection. No `Location` header is returned; the created connection is in the body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Connection"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "security": [
          {
            "OAuth2ClientCredentials": []
          }
        ]
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "Bad Request. A field failed validation (`FIELD_VALIDATION`, with `field` naming it), the request was rejected for another reason the caller can correct (`BAD_REQUEST`), or the body could not be parsed as JSON (`MALFORMED_REQUEST_BODY`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "example": {
              "httpStatus": 400,
              "traceId": "80f198ee56343ba864fe8b2a57d3eff7",
              "errors": [
                {
                  "code": "FIELD_VALIDATION",
                  "field": "domain",
                  "description": "must not be blank"
                }
              ]
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized. The access token is missing, invalid, or expired. The API Gateway rejects the request before it reaches the service.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "example": {
              "httpStatus": 401,
              "traceId": "80f198ee56343ba864fe8b2a57d3eff7",
              "errors": [
                {
                  "code": "UNAUTHORIZED",
                  "field": null,
                  "description": "The access token is missing, invalid, or expired."
                }
              ]
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden. The token is not an external M2M token, or it does not carry the privilege required to reach this endpoint.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "example": {
              "httpStatus": 403,
              "traceId": "80f198ee56343ba864fe8b2a57d3eff7",
              "errors": [
                {
                  "code": "FORBIDDEN",
                  "field": null,
                  "description": "M2M token missing required scope"
                }
              ]
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error. The organization in the token could not be resolved, or an upstream dependency failed. The `description` is deliberately generic; quote `traceId` when reporting the failure.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ApiError"
            },
            "example": {
              "httpStatus": 500,
              "traceId": "80f198ee56343ba864fe8b2a57d3eff7",
              "errors": [
                {
                  "code": "INTERNAL_ERROR",
                  "field": null,
                  "description": "The request could not be completed"
                }
              ]
            }
          }
        }
      }
    },
    "schemas": {
      "ConnectionRequest": {
        "type": "object",
        "description": "A connection to create or replace, together with the domains and products it serves.",
        "required": [
          "connectionType",
          "connection",
          "domains",
          "enabledProducts"
        ],
        "properties": {
          "connectionType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionType"
              }
            ],
            "example": "WAAD",
            "description": "Provider type, which selects the settings expected in `connection`."
          },
          "connection": {
            "description": "Provider settings, in the shape matching `connectionType`.",
            "example": {
              "name": "Example Corp Entra",
              "region": "US",
              "clientId": "8f14e45f-ceea-467a-9c1e-2b3a4d5e6f70",
              "domain": "example.onmicrosoft.com",
              "tenantDomain": "example.onmicrosoft.com",
              "identityApi": "MICROSOFT_IDENTITY_PLATFORM_V2"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/OidcConnectionSettings"
              },
              {
                "$ref": "#/components/schemas/EntraConnectionSettings"
              },
              {
                "$ref": "#/components/schemas/OktaConnectionSettings"
              },
              {
                "$ref": "#/components/schemas/GoogleConnectionSettings"
              }
            ]
          },
          "domains": {
            "type": "array",
            "minItems": 1,
            "description": "Verified domains the connection signs users in for. Every domain must already be verified for the organization.",
            "items": {
              "type": "string",
              "description": "A verified domain.",
              "example": "example.com"
            },
            "example": [
              "example.com"
            ]
          },
          "enabledProducts": {
            "type": "array",
            "description": "Products, and the tenants of those products, the connection is enabled for. Send an empty array to enable the connection for no tenant-scoped product.",
            "items": {
              "$ref": "#/components/schemas/EnabledProduct"
            }
          },
          "enabledEnvironments": {
            "type": "array",
            "nullable": true,
            "description": "Products scoped by environment rather than by tenant, if any. Omit unless a product requires it.",
            "items": {
              "$ref": "#/components/schemas/EnabledEnvironment"
            }
          }
        }
      },
      "EnabledProduct": {
        "type": "object",
        "description": "A product the connection is enabled for, and the tenants of that product it applies to.",
        "required": [
          "product",
          "enabledTenants"
        ],
        "properties": {
          "product": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Product"
              }
            ],
            "example": "PRO",
            "description": "The Jamf product."
          },
          "enabledTenants": {
            "type": "array",
            "description": "Tenants of the product the connection applies to. Empty for products scoped to the organization rather than to a tenant, such as `ACCOUNT`.",
            "items": {
              "type": "string",
              "description": "Identifier of a tenant of the product.",
              "example": "tenant-9Xk2Lp"
            },
            "example": [
              "tenant-9Xk2Lp"
            ]
          },
          "managedAccountId": {
            "type": "string",
            "nullable": true,
            "description": "Set only when the tenants belong to a managed account rather than the caller's own, as a Jamf partner managing a customer.",
            "example": "0013600001JkLmNoPqR"
          }
        }
      },
      "EnabledEnvironment": {
        "type": "object",
        "description": "A product the connection is enabled for, and the environments of that product it applies to. Only products scoped by environment use this.",
        "required": [
          "product",
          "enabledEnvironments"
        ],
        "properties": {
          "product": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Product"
              }
            ],
            "example": "PRO",
            "description": "The Jamf product."
          },
          "enabledEnvironments": {
            "type": "array",
            "description": "Environments of the product the connection applies to.",
            "items": {
              "type": "string",
              "description": "Identifier of an environment of the product.",
              "example": "env-7Yt4Rm"
            },
            "example": [
              "env-7Yt4Rm"
            ]
          },
          "managedAccountId": {
            "type": "string",
            "nullable": true,
            "description": "Set only when the environments belong to a managed account rather than the caller's own.",
            "example": "0013600001JkLmNoPqR"
          }
        }
      },
      "BaseConnectionSettings": {
        "type": "object",
        "description": "Settings common to every connection type. Not used on its own — see the per-type settings schemas.",
        "required": [
          "name",
          "region",
          "aliasLoginHintToIdp"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128,
            "description": "Display name for the connection, shown to administrators in Jamf Account.",
            "example": "Example Corp Entra"
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Region"
              }
            ],
            "example": "US",
            "description": "Region to create the connection in. Cannot be changed once the connection exists."
          },
          "clientId": {
            "type": "string",
            "nullable": true,
            "description": "Client identifier of the application registered with the provider.",
            "example": "8f14e45f-ceea-467a-9c1e-2b3a4d5e6f70"
          },
          "clientSecret": {
            "type": "string",
            "format": "password",
            "nullable": true,
            "writeOnly": true,
            "description": "Client secret of the application registered with the provider. Write-only: supply it to set or rotate the secret, omit it on update to keep the stored value, and expect it to be omitted from every response.",
            "example": "REPLACE_WITH_YOUR_CLIENT_SECRET"
          },
          "tokenEndpointAuthMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TokenEndpointAuthMethod"
              }
            ],
            "example": "CLIENT_SECRET_POST",
            "description": "How Jamf authenticates to the provider's token endpoint. Defaults to `CLIENT_SECRET_POST`."
          },
          "aliasLoginHintToIdp": {
            "type": "boolean",
            "description": "Whether the signing-in user's email address is forwarded to the provider as a login hint, so they do not have to type it twice.",
            "example": true
          },
          "syncUserProfileAttributesAtLogin": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the user's profile attributes are refreshed from the provider on every sign-in. Defaults to true.",
            "example": true
          },
          "attributeMap": {
            "type": "string",
            "nullable": true,
            "description": "JSON document, as a string, mapping provider claims onto Jamf user attributes. Null to use the provider's default mapping.",
            "example": "{\"mappingMode\":\"bind_all\"}"
          },
          "customUsernameClaimName": {
            "type": "string",
            "nullable": true,
            "description": "Claim to read the username from, when the provider does not put it in the standard claim.",
            "example": "preferred_username"
          },
          "usernameDomain": {
            "type": "string",
            "nullable": true,
            "description": "Domain appended to a bare username from the provider to form the user's email address.",
            "example": "example.com"
          },
          "groupNameFilter": {
            "type": "string",
            "nullable": true,
            "description": "Pattern limiting which provider groups are passed through to Jamf, for directories with more groups than Jamf needs.",
            "example": "jamf-*"
          },
          "sessionInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SessionInfo"
              }
            ],
            "description": "Session lifetime limits for users signing in through this connection. Null to use the Jamf defaults.",
            "example": {
              "maxSessionTimeInMinutes": 480,
              "maxInactivityTimeInMinutes": 60
            }
          },
          "sendNonce": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether a nonce is sent on the authentication request. Leave unset unless the provider requires it.",
            "example": true
          },
          "pkceAuthType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PkceAuthType"
              }
            ],
            "example": "DISABLED",
            "description": "Proof Key for Code Exchange method used with the provider. Defaults to `DISABLED`."
          }
        }
      },
      "OidcConnectionSettings": {
        "description": "Settings for a generic OIDC connection (`connectionType: OIDC`). Use this for any provider without a dedicated type.",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseConnectionSettings"
          },
          {
            "type": "object",
            "required": [
              "issuerUrl",
              "authorizationEndpoint",
              "jwksUri",
              "tokenEndpoint",
              "clientId",
              "scopes"
            ],
            "properties": {
              "issuerUrl": {
                "type": "string",
                "description": "Issuer URL of the provider, as it appears in its tokens.",
                "example": "https://idp.example.com/"
              },
              "authorizationEndpoint": {
                "type": "string",
                "description": "Authorization endpoint users are redirected to.",
                "example": "https://idp.example.com/oauth2/authorize"
              },
              "jwksUri": {
                "type": "string",
                "description": "JWKS endpoint the provider publishes its signing keys at.",
                "example": "https://idp.example.com/oauth2/keys"
              },
              "tokenEndpoint": {
                "type": "string",
                "description": "Token endpoint the authorization code is exchanged at.",
                "example": "https://idp.example.com/oauth2/token"
              },
              "userInfoEndpoint": {
                "type": "string",
                "nullable": true,
                "description": "Userinfo endpoint profile attributes are read from. Null when the provider returns everything needed in the ID token.",
                "example": "https://idp.example.com/oauth2/userinfo"
              },
              "scopes": {
                "type": "string",
                "description": "Space-separated OAuth scopes requested from the provider. Must include the scopes needed for the profile attributes Jamf reads.",
                "example": "openid profile email"
              }
            }
          }
        ]
      },
      "EntraConnectionSettings": {
        "description": "Settings for a Microsoft Entra ID connection (`connectionType: WAAD`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseConnectionSettings"
          },
          {
            "type": "object",
            "required": [
              "domain",
              "tenantDomain",
              "useWsfed",
              "useCommonEndpoint",
              "identityApi",
              "basicProfile",
              "enableUsersApi",
              "maxGroups",
              "setEmailsVerified",
              "groups",
              "nestedGroups",
              "extendedProfile"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Primary domain of the Entra tenant.",
                "example": "example.onmicrosoft.com"
              },
              "tenantDomain": {
                "type": "string",
                "description": "Domain identifying the Entra tenant to authenticate against. Usually the same as `domain`.",
                "example": "example.onmicrosoft.com"
              },
              "useWsfed": {
                "type": "boolean",
                "description": "Whether WS-Federation is used instead of OIDC. Leave false unless the tenant requires it.",
                "example": false
              },
              "useCommonEndpoint": {
                "type": "boolean",
                "description": "Whether the multi-tenant common endpoint is used instead of the tenant-specific one. Required for a multi-tenant application, in which case `clientId` may be omitted.",
                "example": false
              },
              "identityApi": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EntraIdentityApi"
                  }
                ],
                "description": "Microsoft identity platform version the connection targets.",
                "example": "MICROSOFT_IDENTITY_PLATFORM_V2"
              },
              "basicProfile": {
                "type": "boolean",
                "description": "Whether the user's basic profile is read from Entra on sign-in.",
                "example": true
              },
              "extendedProfile": {
                "type": "boolean",
                "description": "Whether the user's extended profile attributes are read from Entra on sign-in.",
                "example": true
              },
              "enableUsersApi": {
                "type": "boolean",
                "description": "Whether the Microsoft Graph users API is used to read attributes the token does not carry. Requires the application to hold the corresponding Graph permission.",
                "example": false
              },
              "groups": {
                "type": "boolean",
                "description": "Whether the user's Entra group memberships are passed through to Jamf.",
                "example": true
              },
              "nestedGroups": {
                "type": "boolean",
                "description": "Whether groups inherited through nested group membership are included. Only meaningful when `groups` is true.",
                "example": false
              },
              "groupsScope": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/EntraGroupsScope"
                  }
                ],
                "description": "Graph permission used to read groups. `GROUP_READ_ALL` is the narrower of the two and is the right choice for new connections; `DEFAULT` is `DIRECTORY_READ_ALL`, kept for existing ones.",
                "example": "GROUP_READ_ALL"
              },
              "maxGroups": {
                "type": "integer",
                "format": "int32",
                "minimum": 1,
                "description": "Maximum number of groups read for a user. Entra truncates group claims on large directories, so raising this only helps up to what the provider will return.",
                "example": 250
              },
              "setEmailsVerified": {
                "type": "boolean",
                "description": "Whether email addresses from this provider are treated as already verified, so users are not asked to confirm them again.",
                "example": true
              }
            }
          }
        ]
      },
      "OktaConnectionSettings": {
        "description": "Settings for an Okta connection (`connectionType: OKTA`). Native Okta connections are preferred over configuring Okta as generic OIDC.",
        "required": [
          "domain",
          "clientId",
          "scopes"
        ],
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseConnectionSettings"
          },
          {
            "type": "object",
            "properties": {
              "domain": {
                "type": "string",
                "description": "Okta org domain, without a scheme.",
                "example": "example.okta.com"
              },
              "scopes": {
                "type": "string",
                "description": "Space-separated OAuth scopes requested from Okta.",
                "example": "openid profile email groups"
              }
            }
          }
        ]
      },
      "GoogleConnectionSettings": {
        "description": "Settings for a Google Workspace connection (`connectionType: GOOGLE_APPS`).",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseConnectionSettings"
          },
          {
            "type": "object",
            "required": [
              "domain",
              "clientId",
              "groups",
              "apiEnableUsers"
            ],
            "properties": {
              "domain": {
                "type": "string",
                "description": "Primary domain of the Google Workspace account.",
                "example": "example.com"
              },
              "scopes": {
                "type": "string",
                "nullable": true,
                "description": "Space-separated OAuth scopes requested from Google. Null to use the defaults Jamf requests.",
                "example": "openid profile email"
              },
              "groups": {
                "type": "boolean",
                "description": "Whether the user's Google Workspace group memberships are passed through to Jamf.",
                "example": true
              },
              "extendedGroups": {
                "type": "boolean",
                "description": "Whether groups are read through the Google Directory API rather than from the token, which returns groups the token omits. Defaults to false.",
                "example": false
              },
              "apiEnableUsers": {
                "type": "boolean",
                "description": "Whether the Google Directory users API is used to read attributes the token does not carry.",
                "example": false
              }
            }
          }
        ]
      },
      "Connection": {
        "type": "object",
        "description": "A connection as returned by a read. Client secrets are never included. The provider settings appear in the options object matching `type`; the others are null.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Identifier of the connection.",
            "example": "con_9Xk2LpQr7TvB3mNd"
          },
          "name": {
            "type": "string",
            "description": "Display name of the connection.",
            "example": "Example Corp Entra"
          },
          "type": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ConnectionType"
              }
            ],
            "example": "WAAD",
            "description": "Provider type of the connection."
          },
          "region": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Region"
              }
            ],
            "example": "US",
            "description": "Region the connection lives in."
          },
          "easyConfig": {
            "type": "boolean",
            "description": "Whether the connection was created by Jamf's guided setup rather than configured directly.",
            "example": false
          },
          "clientId": {
            "type": "string",
            "nullable": true,
            "description": "Client identifier of the application registered with the provider. Null for a connection using Entra admin consent, which has no client of its own.",
            "example": "8f14e45f-ceea-467a-9c1e-2b3a4d5e6f70"
          },
          "scopes": {
            "type": "string",
            "nullable": true,
            "description": "Space-separated OAuth scopes requested from the provider. Null for types that do not use configurable scopes.",
            "example": "openid profile email"
          },
          "domains": {
            "type": "array",
            "description": "Verified domains the connection signs users in for.",
            "items": {
              "type": "string",
              "description": "A verified domain.",
              "example": "example.com"
            },
            "example": [
              "example.com"
            ]
          },
          "tokenEndpointAuthMethod": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TokenEndpointAuthMethod"
              }
            ],
            "example": "CLIENT_SECRET_POST",
            "description": "How Jamf authenticates to the provider's token endpoint."
          },
          "azureOptions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntraOptions"
              }
            ],
            "description": "Entra-specific settings. Present only when `type` is `WAAD`.",
            "example": {
              "domain": "example.onmicrosoft.com",
              "tenantDomain": "example.onmicrosoft.com",
              "identityApi": "MICROSOFT_IDENTITY_PLATFORM_V2",
              "groupsScope": "GROUP_READ_ALL",
              "maxGroups": 250
            }
          },
          "oktaOptions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OktaOptions"
              }
            ],
            "description": "Okta-specific settings. Present only when `type` is `OKTA`.",
            "example": {
              "domain": "example.okta.com",
              "issuerUrl": "https://example.okta.com"
            }
          },
          "googleOptions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/GoogleOptions"
              }
            ],
            "description": "Google Workspace-specific settings. Present only when `type` is `GOOGLE_APPS`.",
            "example": {
              "domain": "example.com",
              "extGroups": true
            }
          },
          "oidcOptions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/OidcOptions"
              }
            ],
            "description": "Generic OIDC endpoints. Present only when `type` is `OIDC`.",
            "example": {
              "issuerUrl": "https://idp.example.com/",
              "tokenEndpoint": "https://idp.example.com/oauth2/token"
            }
          },
          "aliasLoginHintToIdp": {
            "type": "boolean",
            "description": "Whether the signing-in user's email address is forwarded to the provider as a login hint.",
            "example": true
          },
          "attributeMap": {
            "type": "string",
            "nullable": true,
            "description": "JSON document, as a string, mapping provider claims onto Jamf user attributes. Null when the provider's default mapping is used.",
            "example": "{\"mappingMode\":\"bind_all\"}"
          },
          "customUsernameClaimName": {
            "type": "string",
            "nullable": true,
            "description": "Claim the username is read from, when it is not the standard one.",
            "example": "preferred_username"
          },
          "usernameDomain": {
            "type": "string",
            "nullable": true,
            "description": "Domain appended to a bare username from the provider to form the user's email address.",
            "example": "example.com"
          },
          "groupNameFilter": {
            "type": "string",
            "nullable": true,
            "description": "Pattern limiting which provider groups are passed through to Jamf.",
            "example": "jamf-*"
          },
          "sessionInfo": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SessionInfo"
              }
            ],
            "description": "Session lifetime limits for users signing in through this connection. Null when the Jamf defaults apply.",
            "example": {
              "maxSessionTimeInMinutes": 480,
              "maxInactivityTimeInMinutes": 60
            }
          },
          "syncUserProfileAttributesAtLogin": {
            "type": "boolean",
            "description": "Whether the user's profile attributes are refreshed from the provider on every sign-in.",
            "example": true
          },
          "sendNonce": {
            "type": "boolean",
            "description": "Whether a nonce is sent on the authentication request.",
            "example": true
          },
          "pkceAuthType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PkceAuthType"
              }
            ],
            "example": "DISABLED",
            "description": "Proof Key for Code Exchange method used with the provider."
          },
          "consentFlow": {
            "type": "boolean",
            "readOnly": true,
            "description": "Whether the connection authenticates through Entra admin consent rather than a client registered by the administrator. Managed by Jamf; `clientId` is null when true.",
            "example": false
          }
        }
      },
      "EntraOptions": {
        "type": "object",
        "description": "Entra-specific settings of a connection.",
        "properties": {
          "domain": {
            "type": "string",
            "nullable": true,
            "description": "Primary domain of the Entra tenant.",
            "example": "example.onmicrosoft.com"
          },
          "tenantDomain": {
            "type": "string",
            "nullable": true,
            "description": "Domain identifying the Entra tenant authenticated against.",
            "example": "example.onmicrosoft.com"
          },
          "useWsfed": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether WS-Federation is used instead of OIDC.",
            "example": false
          },
          "useCommonEndpoint": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the multi-tenant common endpoint is used instead of the tenant-specific one.",
            "example": false
          },
          "identityApi": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntraIdentityApi"
              }
            ],
            "example": "MICROSOFT_IDENTITY_PLATFORM_V2",
            "description": "Microsoft identity platform version the connection targets."
          },
          "basicProfile": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the user's basic profile is read from Entra on sign-in.",
            "example": true
          },
          "enableUsersApi": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the Microsoft Graph users API is used to read attributes the token does not carry.",
            "example": false
          },
          "maxGroups": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "Maximum number of groups read for a user.",
            "example": 250
          },
          "setEmailsVerified": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether email addresses from this provider are treated as already verified.",
            "example": true
          },
          "extOptions": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntraExtendedOptions"
              }
            ],
            "description": "Group and profile options read from the directory.",
            "example": {
              "groups": true,
              "nestedGroups": false,
              "extendedProfile": true
            }
          },
          "groupsScope": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EntraGroupsScope"
              }
            ],
            "example": "GROUP_READ_ALL",
            "description": "Graph permission used to read groups."
          }
        }
      },
      "EntraExtendedOptions": {
        "type": "object",
        "description": "Entra group and profile options, which control what is read from the directory beyond the token's claims.",
        "properties": {
          "groups": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the user's Entra group memberships are passed through to Jamf.",
            "example": true
          },
          "nestedGroups": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether groups inherited through nested group membership are included.",
            "example": false
          },
          "extendedProfile": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the user's extended profile attributes are read from Entra.",
            "example": true
          }
        }
      },
      "OktaOptions": {
        "type": "object",
        "description": "Okta-specific settings of a connection.",
        "properties": {
          "domain": {
            "type": "string",
            "nullable": true,
            "description": "Okta org domain, derived from the issuer URL.",
            "example": "example.okta.com"
          },
          "issuerUrl": {
            "type": "string",
            "nullable": true,
            "description": "Issuer URL of the Okta authorization server.",
            "example": "https://example.okta.com"
          },
          "authorizationEndpoint": {
            "type": "string",
            "nullable": true,
            "description": "Authorization endpoint users are redirected to.",
            "example": "https://example.okta.com/oauth2/v1/authorize"
          },
          "jwksUri": {
            "type": "string",
            "nullable": true,
            "description": "JWKS endpoint Okta publishes its signing keys at.",
            "example": "https://example.okta.com/oauth2/v1/keys"
          },
          "tokenEndpoint": {
            "type": "string",
            "nullable": true,
            "description": "Token endpoint the authorization code is exchanged at.",
            "example": "https://example.okta.com/oauth2/v1/token"
          }
        }
      },
      "GoogleOptions": {
        "type": "object",
        "description": "Google Workspace-specific settings of a connection.",
        "properties": {
          "domain": {
            "type": "string",
            "nullable": true,
            "description": "Primary domain of the Google Workspace account.",
            "example": "example.com"
          },
          "enableUsersApi": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the Google Directory users API is used to read attributes the token does not carry.",
            "example": false
          },
          "extGroups": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the user's Google Workspace group memberships are passed through to Jamf.",
            "example": true
          },
          "extGroupsExtended": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether groups are read through the Google Directory API rather than from the token.",
            "example": false
          },
          "ticketUrl": {
            "type": "string",
            "nullable": true,
            "description": "Relative path to the Google Workspace admin consent request for the connection. Null when no consent is outstanding.",
            "example": "/p/9Xk2LpQr7TvB3mNd"
          }
        }
      },
      "OidcOptions": {
        "type": "object",
        "description": "Endpoints of a generic OIDC connection.",
        "properties": {
          "issuerUrl": {
            "type": "string",
            "nullable": true,
            "description": "Issuer URL of the provider, as it appears in its tokens.",
            "example": "https://idp.example.com/"
          },
          "authorizationEndpoint": {
            "type": "string",
            "nullable": true,
            "description": "Authorization endpoint users are redirected to.",
            "example": "https://idp.example.com/oauth2/authorize"
          },
          "jwksUri": {
            "type": "string",
            "nullable": true,
            "description": "JWKS endpoint the provider publishes its signing keys at.",
            "example": "https://idp.example.com/oauth2/keys"
          },
          "tokenEndpoint": {
            "type": "string",
            "nullable": true,
            "description": "Token endpoint the authorization code is exchanged at.",
            "example": "https://idp.example.com/oauth2/token"
          },
          "userInfoEndpoint": {
            "type": "string",
            "nullable": true,
            "description": "Userinfo endpoint profile attributes are read from.",
            "example": "https://idp.example.com/oauth2/userinfo"
          }
        }
      },
      "SessionInfo": {
        "type": "object",
        "description": "Session lifetime limits for users signing in through a connection.",
        "properties": {
          "maxSessionTimeInMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "minimum": 1,
            "description": "How long a session lasts before the user must sign in again, regardless of activity. Null to use the Jamf default.",
            "example": 480
          },
          "maxInactivityTimeInMinutes": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "minimum": 1,
            "description": "How long a session survives without activity before the user must sign in again. Null to use the Jamf default.",
            "example": 60
          }
        }
      },
      "ConnectionType": {
        "type": "string",
        "description": "Provider type of a connection. `OIDC` is the generic type and works with any OpenID Connect provider; the other three carry provider-specific settings and should be preferred where they apply.",
        "enum": [
          "OIDC",
          "WAAD",
          "OKTA",
          "GOOGLE_APPS"
        ],
        "example": "WAAD"
      },
      "Region": {
        "type": "string",
        "description": "Region a connection lives in. A connection cannot be moved between regions once created.",
        "enum": [
          "US",
          "EU",
          "AU",
          "JP"
        ],
        "example": "US"
      },
      "Product": {
        "type": "string",
        "description": "A Jamf product a connection can be enabled for.",
        "enum": [
          "ACCOUNT",
          "PRO",
          "PROTECT",
          "SCHOOL",
          "SECURITY_CLOUD",
          "JETP",
          "ROUTINES",
          "INSIGHTS",
          "ELEVATE"
        ],
        "example": "PRO"
      },
      "TokenEndpointAuthMethod": {
        "type": "string",
        "description": "How Jamf authenticates to the provider's token endpoint. `CLIENT_SECRET_POST` sends the client secret in the request body; `PRIVATE_KEY_JWT` signs an assertion instead and needs no shared secret.",
        "enum": [
          "CLIENT_SECRET_POST",
          "PRIVATE_KEY_JWT"
        ],
        "example": "CLIENT_SECRET_POST"
      },
      "PkceAuthType": {
        "type": "string",
        "description": "Proof Key for Code Exchange method used with the provider. `AUTO` lets the provider's metadata decide, and `DISABLED` sends no challenge.",
        "enum": [
          "PLAIN",
          "S256",
          "AUTO",
          "DISABLED"
        ],
        "example": "DISABLED"
      },
      "EntraIdentityApi": {
        "type": "string",
        "description": "Microsoft identity platform version a connection targets. `MICROSOFT_IDENTITY_PLATFORM_V2` is current; the v1 endpoint is retained for connections that predate it.",
        "enum": [
          "MICROSOFT_IDENTITY_PLATFORM_V2",
          "AZURE_ACTIVE_DIRECTORY_V1"
        ],
        "example": "MICROSOFT_IDENTITY_PLATFORM_V2"
      },
      "EntraGroupsScope": {
        "type": "string",
        "description": "Microsoft Graph permission used to read a user's groups. `GROUP_READ_ALL` reads groups only and is the narrower of the two; `DIRECTORY_READ_ALL` reads the whole directory and is retained for existing connections.",
        "enum": [
          "GROUP_READ_ALL",
          "DIRECTORY_READ_ALL"
        ],
        "example": "GROUP_READ_ALL"
      },
      "ApiError": {
        "type": "object",
        "description": "Standard Jamf error response body, returned for every non-2xx response raised by the service.",
        "required": [
          "httpStatus",
          "errors"
        ],
        "properties": {
          "httpStatus": {
            "type": "integer",
            "description": "HTTP status code of the response.",
            "example": 400
          },
          "traceId": {
            "type": "string",
            "nullable": true,
            "description": "Trace identifier correlating the response with Jamf server-side logs. Quote it when reporting a failure. Null when the request carried no active trace.",
            "example": "80f198ee56343ba864fe8b2a57d3eff7"
          },
          "errors": {
            "type": "array",
            "description": "Every problem found with the request. Always holds at least one entry.",
            "items": {
              "$ref": "#/components/schemas/ApiErrorItem"
            }
          }
        }
      },
      "ApiErrorItem": {
        "type": "object",
        "description": "A single problem with the request.",
        "required": [
          "code",
          "description"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "Machine-readable, stable classification of the problem. Values used by this API include `MALFORMED_REQUEST_BODY`, `FIELD_VALIDATION`, `BAD_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `CONFLICT`, and `INTERNAL_ERROR`. Prefer this over matching on `description`.",
            "example": "FIELD_VALIDATION"
          },
          "field": {
            "type": "string",
            "nullable": true,
            "description": "Request field the problem relates to, in dotted notation for a nested field. Null when the problem is not about one field.",
            "example": "domain"
          },
          "description": {
            "type": "string",
            "description": "Human-readable explanation, for troubleshooting rather than display to an end user. Generic for server-side failures, which are correlated through `traceId` instead.",
            "example": "must not be blank"
          }
        }
      }
    },
    "securitySchemes": {
      "OAuth2ClientCredentials": {
        "type": "oauth2",
        "description": "Obtain an access token by calling the API Gateway's token endpoint using the OAuth2 client-credentials flow.",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{region}.api.jamfcloud.com/auth/token",
            "scopes": {}
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://{region}.api.jamfcloud.com/sso",
      "description": "Jamf Production API Gateway",
      "variables": {
        "region": {
          "default": "us",
          "enum": [
            "us"
          ],
          "description": "Select the regional gateway"
        }
      }
    }
  ],
  "security": [
    {
      "OAuth2ClientCredentials": []
    }
  ]
}
```