organizations.get is an asynchronous method that wraps the get organization endpoint. Use it to fetch the of the logged-in .
Before using this method, enable in the Frontend SDK page.
organizations.getSync method to fetch the cached data from local storage.
Response
Globally unique UUID that identifies a specific Organization. The
organization_id is critical to perform operations on an Organization, so be sure to preserve this value. You may also use the organization_slug or organization_external_id here as a convenience.The name of the Organization. Must be between 1 and 128 characters in length.
The image URL of the Organization logo.
The unique URL slug of the Organization.The slug only accepts alphanumeric characters and the following reserved characters:
- . _ ~. Must be between 2 and 128 characters in length.Wherever an organization_id is expected in a path or request parameter, you may also use the organization_slug as a convenience.An array of active SAML Connection references or OIDC Connection references.
An array of email domains that allow invites or JIT provisioning for new Members. This list is enforced when either
email_invites or email_jit_provisioning is set to RESTRICTEDCommon domains such as gmail.com are not allowed. See the full list of disallowed common email domains.The authentication setting that controls how a new Member can be provisioned by authenticating via Email Magic Link or OAuth. The accepted values are:
RESTRICTED– only new Members with verified emails that comply withemail_allowed_domainscan be provisioned upon authentication via Email Magic Link or OAuthNOT_ALLOWED– the default setting, disables JIT provisioning via Email Magic Link and OAuth
The setting that controls which authentication methods can be used by Members of an Organization. The accepted values are:
ALL_ALLOWED– the default setting which allows all authentication methods to be usedRESTRICTED– only methods that comply withallowed_auth_methodscan be used for authentication. This setting does not apply to Members withis_breakglassset to true
An array of allowed authentication methods. This list is enforced when
auth_methods is set to RESTRICTED. The list’s accepted values are: sso, magic_link, email_otp, password, google_oauth, microsoft_oauth, slack_oauth, github_oauth, and hubspot_oauth.The default connection used for SSO when there are multiple active connections.
The authentication setting that controls how a new Member can JIT provision into an Organization by tenant. The accepted values are:
RESTRICTED– only new Members with tenants inallowed_oauth_tenantscan JIT provision via tenantNOT_ALLOWED– the default setting, disables JIT provisioning by OAuth Tenant
A map of allowed OAuth tenants. If this field is not passed in, the Organization will not allow JIT provisioning by OAuth Tenant. Allowed keys are “slack”, “hubspot”, and “github”.