Get an organization's authentication policy
/api/v1/organizations/{id}/policyReturns the organization's own authentication policy (null fields inherit the Environment) alongside the effective policy its members sign in under. Requires the hierarchy.view permission at the organization.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required Responses
application/json
data *OrganizationPolicyResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X GET "https://auth.canopy-io.com/api/v1/organizations/value/policy" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "data": { "organization_id": "string", "mfa_required": false, "mfa_factor_allowlist": [ "totp" ], "mfa_after_sso": "exempt", "allowed_sign_in_methods": [ "password" ], "require_sso": false, "environment": { "mfa_required": false, "mfa_factor_allowlist": [ "totp" ], "mfa_after_sso": "exempt", "allowed_sign_in_methods": [ "password" ], "require_sso": false }, "effective": { "mfa_required": false, "mfa_factor_allowlist": [ "totp" ], "mfa_after_sso": "exempt", "allowed_sign_in_methods": [ "password" ], "require_sso": false }, "version": 0, "sso_recovery_codes_generation": 0, "sso_recovery_codes_remaining": 0, "sso_recovery_codes": [ "string" ] } }
Tell us how we can improve this guide.