Enterprise SSO API Reference - PropelAuth Docs
Enterprise SSO API Reference
These APIs can be called from your backend using your PropelAuth API Key. Click here for more information about Enterprise SSO.
Allow Org To Setup SAML
Allows an organization to setup SAML SSO. Users in the organization will then be able to go through the SAML setup flow.
Required Permissions
Update Organization SSO Settings
Properties
- Name
orgIdType string Description: The organization ID
Request
auth.allowOrgToSetupSamlConnection(
"1189c444-8a2d-4c41-8b4b-ae43ce79a492"
)
Successful Response
Disallow Org To Setup SAML
Disallows an organization to setup SAML SSO. If the organization already has SAML setup, they will no longer be able to use it.
Required Permissions
Update Organization SSO Settings
Properties
- Name
orgIdType string Description: The organization ID
Request
auth.disallowOrgToSetupSamlConnection(
"1189c444-8a2d-4c41-8b4b-ae43ce79a492"
)
Successful Response
Create SAML Connection Link
Creates a link that allows a user to setup SAML for an organization without logging in or creating an account. Visit our SAML/Enterprise SSO docs for more information.
Required Permissions
Manage SSO Setup Links
Properties
- Name
orgIdType string Description: The organization ID - Name
expiresInSecondsType number Description: The amount of seconds before the link expires
Request
auth.createOrgSamlConnectionLink(
"1189c444-8a2d-4c41-8b4b-ae43ce79a492", // orgId
86400, // expired in seconds
)
Successful Response
{
url: "https://example.com"
}
Fetch SAML SP Metadata
Fetches SAML Service Provider Metadata. This is the information your organizations will input into their IdP when configuring SAML.
Required Permissions
Read SSO Connections
Properties
- Name
orgIdType string Description: The ID of the organization
Request
auth.fetchSamlSpMetadata("1189c444-8a2d-4c41-8b4b-ae43ce79a492")
Successful Response
{
entityId: "https://auth.your.domain/saml/ORGS-URL-SLUG/metadata",
acsUrl: "https://auth.your.domain/saml/ORGS-URL-SLUG/acs",
logoutUrl: "https://auth.your.domain/saml/ORGS-URL-SLUG/logout"
}
Set SAML IdP Metadata
Sets the SAML metadata from an organization's IdP. Must be completed before using the SAML Go Live endpoint.
Required Permissions
Setup SSO Connections
Properties
- Name
idpEntityIdType string Description: The Entity ID from the organization's IdP - Name
idpSsoUrlType string Description: The Single Sign-On URL from the organization's IdP - Name
idpCertificateType string Description: The Base-64 encoded X.509 certificate from the organization's IdP - Name
providerType string Description: The name of the SAML provider. Must equal 'Google', 'Rippling', 'OneLogin', 'JumpCloud', 'Okta', 'Azure', 'Duo', or 'Generic'
Request
auth.setSamlIdpMetadata(orgId, {
idpEntityId: "https://sts.windows.net/SOME-UUID/",
idpSsoUrl: "https://login.microsoftonline.com/SOME-UUID/saml2",
idpCertificate: "-----BEGIN CERTIFICATE-----MyCertificateHere-----END CERTIFICATE-----",
provider: "Azure"
});
Successful Response
Enable SAML Connection
Sets an organization's SAML status to Live after using the Set SAML IdP Metadata endpoint.
Required Permissions
Setup SSO Connections
Properties
- Name
orgIdType string Description: The organization ID
Request
auth.samlGoLive(
"1189c444-8a2d-4c41-8b4b-ae43ce79a492"
)
Successful Response
Delete SAML Connection
Deletes an organization's SAML connection. The organization will still be able to enable SAML.
Required Permissions
Delete SSO Connections
Properties
- Name
orgIdType string Description: The organization ID
Request
auth.deleteSamlConnection("1189c444-8a2d-4c41-8b4b-ae43ce79a492")
Successful Response
Fetch Org SCIM Groups
Fetches SCIM groups for an organization that has SCIM enabled and is syncing groups from an external identity provider.
Required Permissions
Read SCIM Groups
Properties
- Name
orgIdType string Description: The ID of the organization - Name
userIdType string Description: Filter by a user ID to get groups that a specific user belongs to. - Name
pageSizeType number Description: The number of results to return per page. - Name
pageNumberType number Description: The page number to return.
Request
auth.fetchOrgScimGroups({
orgId: "1189c444-8a2d-4c41-8b4b-ae43ce79a492",
userId: "31c41c16-c281-44ae-9602-8a047e3bf33d",
pageSize: 10,
pageNumber: 0,
})
Successful Response
{
"total_groups": 2,
"page_size": 10,
"page_number": 0,
"groups": [
{
"group_id": "021103f2-24c1-4867-bb51-d7a37777ea1d",
"display_name": "Engineering",
"external_id_from_idp": "abc123"
},
{
"group_id": "4b14cf03-4f63-4840-9867-fb28c862b0d3",
"display_name": "Sales",
"external_id_from_idp": "abc1234"
}
]
}
Fetch SCIM Group
Fetches a SCIM group for an organization and returns the group's membership.
Required Permissions
Read SCIM Groups
Properties
- Name
orgIdType string Description: The ID of the organization - Name
groupIdType string Description: The ID of the group to fetch. - Name
membersPageSizeType number Description: The number of members to fetch per page. - Name
membersPageNumberType number Description: The page number of members to fetch.
Request
auth.fetchOrgScimGroup({
orgId: "1189c444-8a2d-4c41-8b4b-ae43ce79a492",
groupId: "31c41c16-c281-44ae-9602-8a047e3bf33d",
membersPageSize: 10,
membersPageNumber: 0,
})
Successful Response
{
"group_id": "068ce3f1-0b7e-4b91-8559-f64a558d9f9f",
"external_id_from_idp": "abc123",
"display_name": "Engineering",
"members": [
{
"user_id": "18bec57e-b6c0-4007-ba32-d65da45321ce"
}
]
}