Яндекс.Метрика
SSO in Pachca with ADFS OpenID

SSO in Pachca with ADFS OpenID

This guide explains how to configure ADFS on Windows Server 2016 or later to connect it to Pachca.

Open the AD FS Management tool.

AD FS Management tool in Windows Server

Click Add Application Group….

Add Application Group button in ADFS

Enter any name (for example, "Pachca").

Select the Server application type and click Next.

Setting the application name and selecting the Server application type

Save the value of the Client Identifier field.

Enter the Redirect URI we give you.

Client Identifier and Redirect URI fields

Turn on Generate a shared secret and copy the generated code.

Generating a shared secret for the application

Send us these values:

  • Client Identifier
  • Secret
  • The URL of your ADFS server

‍

Review the configuration and click Next to finish.

Reviewing the application configuration

ADFS needs additional configuration to work with OpenID. It's described in https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/development/custom-id-tokens-in-ad-fs

Select the object you created and click Properties.

Opening Properties of the created object

In the object settings, click Add application.

Add application button in the settings

Select the Web API type.

Selecting the Web API type

In the Identifier field, enter your Client Identifier.

Setting the Identifier for the Web API

Leave Access Control Policy set to Permit everyone, unless you need finer control over how your users work with the authentication app.

Access Control Policy: Permit everyone

Under Permitted scopes, select allatclaims and openid.

Selecting Permitted scopes: allatclaims and openid

Review the settings and finish the configuration.

Final review of the Web API settings

‍

‍

Pass employee attributes to Pachca

Pachca needs user data to work, so you need to set up passing it in the OpenID token.

Select the Web API you created and click Edit.

Go to the Issuance Transform Rules tab and click Add Rule….

Issuance Transform Rules tab

Click Next.

Add Transform Claim Rule wizard

In the Claim rule name field, enter any name (for example, "User profile").

In the Attribute store field, select Active Directory.

Fill in the table with these values:

  • E-Mail-Addresses: email
  • Given-Name: firstName
  • Surname: lastName

Click Finish to complete the configuration.

Mapping Active Directory attributes

We can also agree on handling other fields in Pachca to fit your use case. To pass them, add the mapping to this table and tell us the name of the custom Outgoing Claim Type

Pachca profile fields and their attribute names:

  • Phone: phone_number
  • Job title: title
  • Department: department
  • Group tags: group_tags

You can also pass any other text fields from your directory to Pachca, such as an employee's manager or birthday. To do this:

  1. Create the field in Members in Pachca (Members → settings → add field → set a name and any type except "file")
  2. Enter the attribute name in the mapping, as described above for the standard profile fields

Once the mapping is set up, let our support team know so they can connect it.

‍

‍

Troubleshooting

Error on the ADFS sign-in page

Error on the ADFS sign-in page

To allow sign-in through the Identity Provider, run this PowerShell command:

Set-AdfsProperties -EnableIdPInitiatedSignonPage $true

‍

Error after signing in to ADFS successfully

Error after signing in to ADFS successfully

The server time may be wrong. Check your NTP sync.

‍

‍

Test the setup

On the Pachca login screen, click With email.

With email button on the Pachca login screen

Click Log in with SSO.

Log in with SSO button

In the email field, enter your work email from AD.

Sign in through your company's system.

‍

"Cookie not found" error

Cookie not found error on a mobile device

If you see the error "Cookie not found. Please make sure cookies are enabled in your browser" when logging in on a mobile device, change your default browser for opening links to Google Chrome.

Updated: February 17, 2025

More in Administration

Accounts in Pachca
How Pachca is structured: the difference between an account, a user and a member profile
Inviting your team
How to invite your team to Pachca, the team chat app: two ways to add employees
Change your email in Pachca
How to change your email address in Pachca: a guide for employees and administrators
Errors when adding people by email
Common errors when adding users to Pachca by email and how to fix them
Managing members in Pachca
Managing members in Pachca: how to add, edit and remove people from your team
Group tags
Add employees to all the chats they need at once with group tags
Advanced administration via API
How to automate user administration in Pachca with the API: creating users, managing them and tags
Ports and addresses Pachca needs
Ports and addresses Pachca needs to work properly: setting up your corporate firewall
Storage in Pachca
Everything about file storage in Pachca: limits, managing storage space and working with documents
Setting up DLP in Pachca
Add an extra layer of protection for personal data, tokens and passwords
Internal/external file access
How to set up internal and external zones in Pachca to protect your company documents
Two-factor authentication (2FA)
How to turn on two-factor authentication in Pachca for extra account security
Import chats from Slack
How to import your chat history from Slack into Pachca: a step-by-step migration guide
Import chats from Mattermost
Pachca lets you move your chat history and files from Mattermost into your workspace.
Import chats from Telegram
If your team is moving to Pachca from Telegram, you can bring your chat history over to your team chat app.
Exporting messages from Pachca
How to export messages from Pachca: data format, settings and export limitations
SSO options in Pachca
Single sign-on (SSO) in Pachca: SAML, LDAP and Keycloak connection options and step-by-step guides
SSO in Pachca with LDAP
SSO in Pachca with Multifactor.ru
SSO in Pachca with Blitz Identity Provider
SSO in Pachca with Authentik
SSO in Pachca with Keycloak
SSO in Pachca with Azure OpenID
SSO in Pachca with Google Workspace SAML
SSO in Pachca with Indeed IdP over SAML
SSO in Pachca with Yandex 360
SSO in Pachca with Yandex Identity Hub
BYOK: Bring Your Own Key in Pachca
How encryption with your own key (BYOK) works in the Pachca team chat app
Advanced encryption in Pachca
How to set up advanced encryption in Pachca for extra protection of your company data
Set up BYOK with HashiCorp Vault
Set up BYOK with Yandex KMS
Set up BYOK with Cloud.ru KMS