Single Sign-On and Automatic Offboarding: Guide for System Administrators
Audience: the IT or identity administrator of a company that uses ERPeek. Version: 2026-11-19. Owner: ERPeek (support@erpeek.ai).
This guide explains how to connect your identity provider to ERPeek so that your people sign in with their work account, and so that a person you disable or remove in your directory loses their ERPeek access automatically.
1. Summary
| Topic | Answer |
|---|---|
| Single sign-on protocol | SAML 2.0 (service provider initiated) |
| Provisioning protocol | SCIM 2.0 (RFC 7643 and RFC 7644) |
| Component | Ory Polis (open source, Apache 2.0), run by ERPeek inside its own network |
| Tested identity provider | Microsoft Entra ID (sign-in and provisioning) |
| Other providers | Okta, Google Workspace and any SAML 2.0 provider for sign-in; Okta and any SCIM 2.0 directory for provisioning (not Google Workspace) |
| Plan | Enterprise |
| Who sets it up | An admin of your ERPeek organization, with your IT administrator |
| Time needed | About 30 minutes, plus the time for one DNS record to appear |
ERPeek also offers a plain "Continue with Microsoft" button on its sign-in page. That button needs no setup and is not covered here: it signs a person in, but gives your company no control. This guide is about the controlled connection that belongs to your organization.
2. Before you start
You need:
- An ERPeek organization, and an account that is an admin of it.
- The Enterprise plan on that organization.
- Access to the DNS of your email domain (to add one TXT record).
- An administrator of your identity provider who can create an enterprise application.
Everything below is done in ERPeek on the Organization page, Settings tab.
3. Step 1: prove your email domain
ERPeek only signs in, adds or removes people whose email address is on a domain your organization has proved it owns. This is the rule that prevents one company's directory from acting on another company's people.
- In Settings, under "Prove your email domain", enter your domain (for
example
contoso.com) and select Add domain. - ERPeek shows a TXT record of the form
erpeek-verification=<value>. Add it to the DNS of that domain. - Select Check now. DNS changes can take up to an hour.
Notes:
- A domain can belong to one ERPeek organization only.
- Public mail domains (gmail.com, outlook.com and similar) are refused.
- Keep the TXT record in place. ERPeek reads it again every day. If it disappears for three days, your admins are told by email. Nothing is switched off.
4. Step 2: single sign-on (SAML 2.0)
4.1 Values ERPeek gives you
In Settings, under "Connect your identity provider", ERPeek shows two values. Copy them exactly as shown on your screen.
| ERPeek label | Name in Microsoft Entra | Value for erpeek.ai |
|---|---|---|
| Identifier (Entity ID) | Identifier (Entity ID) | https://erpeek.ai/sso |
| Reply URL | Reply URL (Assertion Consumer Service URL) | https://erpeek.ai/api/sso/saml |
4.2 Microsoft Entra ID
- Entra admin center, Enterprise applications, New application, Create your own application. Name it "ERPeek" and choose "Integrate any other application you don't find in the gallery".
- Open Single sign-on, choose SAML.
- In Basic SAML Configuration, paste the Identifier and the Reply URL from 4.1. Leave Sign on URL empty.
- In Attributes and Claims, keep the defaults. ERPeek reads the email
address (
emailaddress), the given name and the surname. The email address must be the person's work address on the domain you proved. - In SAML Certificates, copy the App Federation Metadata Url.
- In Users and groups, assign the people or groups who may use ERPeek.
4.3 Okta
- Okta admin console, Applications, Create App Integration, SAML 2.0.
- Single sign-on URL: the Reply URL of 4.1. Audience URI (SP Entity ID): the Identifier of 4.1.
- Name ID format: EmailAddress. Application username: Email.
- Attribute statements:
email,firstName,lastName. - Assign people or groups, then copy the Metadata URL from the Sign On tab.
4.4 Google Workspace
- Google Admin console, Apps, Web and mobile apps, Add app, Add custom SAML app.
- Download the metadata file. Google gives a file, not a link.
- ACS URL: the Reply URL of 4.1. Entity ID: the Identifier of 4.1. Name ID: Basic Information, Primary email.
- Attributes:
email,firstName,lastName. Turn the app on for the right people. - In ERPeek, paste the content of the metadata file in the XML field.
Google Workspace does not send people changes to custom applications, so section 5 (automatic offboarding) does not apply. With Google, turn on "Require single sign-on" (4.7) and keep the sign-in length short: a person you disable in Google can then no longer get in once their session ends.
4.5 Other providers (OneLogin, JumpCloud, others)
Create a SAML 2.0 application with the two values of 4.1. Requirements:
- The response and the assertion are signed (RSA-SHA256).
- The assertion carries the person's work email address, as the NameID or as
an
emailattribute, plus first name and last name when available. - Give ERPeek the federation metadata, as a link (https) or as XML.
OpenID Connect connections are not offered. Use SAML 2.0.
4.6 Finish in ERPeek
- Choose your identity provider, paste the federation metadata link (or the XML) and select Save connection. The connection starts as a draft.
- Select Test sign-in. You are sent to your identity provider and back. Only an admin can use a draft connection.
- Once the test has passed, select Turn on. From now on, a person who types a work address of your domain on the ERPeek sign-in page is offered "Continue with your organization".
4.7 Make single sign-on mandatory (optional)
When "Require single sign-on" is on, everyone on your proved domains signs in through your identity provider only. Passwords, Google, GitHub and the plain Microsoft button stop working for them at once.
Before ERPeek lets you turn this on:
- you must have signed in through the connection yourself in this session;
- you must name one emergency admin. This admin keeps a password with two-step verification, for the day your identity provider is unavailable. Every emergency sign-in is recorded and emailed to your admins.
Certificate expiry. Your identity provider's signing certificate expires every one to three years. ERPeek shows the date in Settings and emails your admins 30 days and 7 days before. After renewing it, save the connection again with the new federation metadata.
You also choose how long an ERPeek session lasts before the person is sent through your identity provider again: 1 to 24 hours, 12 by default. Your own conditional access and multi-factor rules apply at each of those sign-ins.
4.8 New people
With "People join on their first sign-in" on (the default), a person on your domain who signs in through your identity provider becomes a member of your ERPeek organization, with no invitation. With it off, only people an admin invited or your directory announced (section 5) can join.
A new member sees no project until an admin or a project owner shares one with them.
5. Step 3: automatic offboarding (SCIM 2.0)
With provisioning on, your directory tells ERPeek who is active. ERPeek acts on each message before answering it.
5.1 Connect
- In Settings, under "Automatic offboarding", choose your directory and select Connect directory.
- ERPeek shows an Address and a Secret token. The token is shown once. Store both in your identity provider now.
5.2 Microsoft Entra ID
- Open the ERPeek enterprise application, Provisioning, Get started.
- Provisioning mode: Automatic.
- Tenant URL: the Address from ERPeek, including the ending
?aadOptscim062020. - Secret token: the token from ERPeek. Select Test connection.
- Mappings: keep the defaults for users.
userNameand the work email must be the person's address on your proved domain. Turn on group provisioning only if you want roles from groups (5.6). - Scope: "Sync only assigned users and groups" is recommended.
- Set Provisioning status to On.
Microsoft runs a provisioning cycle about every 40 minutes. To act at once on one person, use Provision on demand.
5.3 Okta
- Open the ERPeek application, General, and turn on SCIM provisioning.
- Provisioning, Integration: SCIM connector base URL is the
Address, the unique identifier field is
userName, the authentication mode is HTTP Header, and the token is the Secret token. - Turn on Create Users, Update User Attributes and Deactivate Users.
5.4 Other SCIM 2.0 directories
Use the Address as the SCIM base URL and the Secret token as an HTTP Bearer
token. ERPeek serves /Users and /Groups with create, read, filter on
userName, replace, patch and delete.
5.5 What ERPeek does
| Your directory says | ERPeek does |
|---|---|
| A person is active and has no ERPeek account | No account is created. The person is expected and joins on their first sign-in |
| A person is active and has an ERPeek account on your domain | They become a member of your organization |
| A person is disabled, unassigned or deleted | Their sessions end on the next request. Their trusted devices, connector tokens and API keys are revoked. Projects of your organization that they owned are handed to an admin and keep working. Their access to your other projects is removed. Their account is blocked |
| A disabled person is enabled again | They can sign in again. Projects are not handed back automatically |
| A person's address changes | ERPeek follows it when the new address is on a domain you proved and is free |
Safeguards:
- A directory can never remove the last admin of an organization. ERPeek keeps that admin and alerts its own operations team.
- A person whose address is not on a domain you proved is ignored. The event is written to your access log.
- Projects a person created under their own name and never moved into your organization are not touched.
5.6 Roles from groups (optional)
After your directory has sent its groups, Settings lists them. Map a group to Admin or Member. Once at least one group is mapped to Admin, your directory decides who is an admin of your ERPeek organization.
Removing a person from every group does not remove their access. Only disabling, unassigning or deleting the person does.
5.7 Token rotation and disconnect
- Create a new secret token replaces the token at once. Paste the new one into your directory straight away.
- Disconnect directory closes the address. Nobody gains or loses access at that moment. People are managed by hand again.
6. Security facts for your review
| Question | Answer |
|---|---|
| Where is the connection configured and stored? | In a dedicated database of ERPeek's sign-on service, separate from application data, included in the daily backups |
| Does ERPeek receive passwords? | No. Authentication happens at your identity provider |
| How is the SCIM token checked? | Constant-time comparison. The token is never written to ERPeek logs or to the application database |
| What is logged from provisioning requests? | Method, resource type, status and duration. Never a request body |
| Rate limit on the SCIM address | 100 requests per 10 seconds per directory, then HTTP 429 with Retry-After |
| Largest request body | 1 MB |
| What if ERPeek cannot apply a change? | It answers HTTP 500 so your directory sends the request again |
| Daily control | Every day ERPeek checks that no removed person still holds a session token, an API key, a trusted device or a project, and that it agrees with your directory on who is active |
| Access log | Every sign-in, refusal, membership change, role change and directory change is recorded in an append-only log, visible to your admins in the Access log tab and exportable |
| Can another customer's directory act on our people? | No. Every action is limited to the organization that owns the connection and to its proved domains |
7. Troubleshooting
| Symptom | Likely cause | What to do |
|---|---|---|
| "Continue with your organization" does not appear | The domain is not proved, or the connection is still a draft | Check step 1, then turn the connection on |
| The test sign-in comes back with an error | The Identifier or Reply URL differs from 4.1, or the person is not assigned to the application | Compare both values character by character. Assign the person |
| A person is refused with "domain not verified" | Their email attribute in your directory is on another domain | Fix the mail attribute, or prove that domain too |
| Microsoft "Test connection" fails | The Tenant URL lost its ending, or the token was rotated | Paste the Address again in full. Create a new token if needed |
| A disabled person still appears active | Microsoft has not run its cycle yet | Use "Provision on demand", or wait for the next cycle |
| Groups do not appear in ERPeek | Group provisioning is off, or no group is assigned to the application | Turn group provisioning on and assign the groups |
| An admin is locked out while single sign-on is mandatory | Your identity provider is down | The emergency admin signs in with password and two-step verification |
8. Support
Write to support@erpeek.ai with the name of your organization and the time of the problem. Never send a secret token or a certificate private key by email. ERPeek support will never ask for one.

