Integrate with Productive
Support level: Community
What is Productive?
Productive is a professional services automation platform for agencies, consultancies, and other service businesses. It includes tools for resource planning, time tracking, project management, CRM, budgeting, invoicing, forecasting, and reporting.
Preparation
The following placeholders are used in this guide:
authentik.companyis the FQDN of the authentik installation.
This documentation lists only the settings that you need to change from their default values. Be aware that any changes other than those explicitly mentioned in this guide could cause issues accessing your application.
Single Sign-On (SSO) is available on all Productive plans. Enforcing SSO and SCIM provisioning require Productive's Ultimate plan. To let Productive create users automatically from SSO or SCIM, make sure each authentik user has an email address and a full name with a first and last name.
authentik configuration
To support the integration of Productive with authentik, you need to create two property mappings and an application/provider pair in authentik.
Create property mappings
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Customization > Property Mappings and click Create.
- Select SAML Provider Property Mapping as the type and click Next.
- Create a property mapping with the following values:
- Name:
Productive first name - SAML Attribute Name:
first_name - Expression:
return request.user.name.split(" ", 1)[0] if request.user.name else request.user.username
- Name:
- Click Create.
- Repeat steps 2-5 to create the following additional SAML provider property mapping:
- Name:
Productive last name - SAML Attribute Name:
last_name - Expression:
return request.user.name.rsplit(" ", 1)[-1] if " " in request.user.name else ""
- Name:
Create an application and provider in authentik
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Applications and click New Application to open the application wizard.
- Application: provide a descriptive name, an optional group for the type of application, the policy engine mode, and optional UI settings.
- Choose a Provider type: select SAML Provider as the provider type.
- Configure the Provider: provide a name (or accept the auto-provided name), the authorization flow to use for this provider, and the following required configurations.
- Temporarily set the ACS URL and Audience to
https://temp.temp - Under Advanced protocol settings:
- Select an available Signing Certificate.
- Toggle on Sign responses.
- Set NameID Property Mapping to
authentik default SAML Mapping: Email. - Under Property mappings, add the property mappings that you created in the previous section.
- Temporarily set the ACS URL and Audience to
- Configure Bindings (optional): you can create a binding (policy, group, or user) to manage the listing and access to applications on a user's Application Dashboard page. If you add the SCIM provider as a backchannel provider later, only users who can view this application are synchronized.
-
Click Create Application to save the new application and provider.
Productive configuration
- Log in to Productive as an administrator.
- Navigate to Settings > SSO and SCIM.
- Copy the Single Sign-On URL and Audience URI values. You will use these values in the next section.
- Keep the Productive SSO settings open.
Configure the remaining information in authentik
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Providers and click the provider that you created in the previous step.
- Click Edit.
- Under Protocol settings, set the value of the ACS URL to the Single Sign-On URL value from Productive. Then, set the value of the Audience to the Audience URI value from Productive.
- Click Update.
Enable SSO in Productive
- Return to the Productive SSO and SCIM page.
- Set the following values:
- Metadata URL:
https://authentik.company/application/saml/<application_slug>/metadata/ - Identity Provider Single Sign-On URL:
https://authentik.company/application/saml/<application_slug>/
- Metadata URL:
- Click Enable SSO.
SCIM provisioning (optional)
authentik can also provision Productive users with SCIM. SCIM requires SSO to be configured first.
Create a SCIM property mapping
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Customization > Property Mappings and click Create.
-
Select SCIM Provider Mapping as the property mapping type and click Next.
-
Set the following values:
-
Name:
Productive SCIM user -
Expression:
given_name, family_name = request.user.name, " "formatted = request.user.name + " "if " " in request.user.name:given_name, _, family_name = request.user.name.partition(" ")formatted = request.user.nameuser_name = request.user.email or request.user.usernameemails = []if request.user.email:emails = [{"value": request.user.email,"type": "work","primary": True,}]return {"userName": user_name,"name": {"formatted": formatted,"givenName": given_name,"familyName": family_name,},"active": request.user.is_active,"emails": emails,}
-
-
Click Create.
Enable SCIM in Productive
- Log in to Productive as an administrator.
- Navigate to Settings > Single Sign-On > SCIM.
- Open the SCIM section and click Enable SCIM.
- Copy the Base URL and Bearer Token values.
Create a SCIM provider in authentik
-
Log in to authentik as an administrator and open the authentik Admin interface.
-
Navigate to Applications > Providers and click New Provider to open the provider wizard.
- Choose a Provider type: select SCIM Provider as the provider type.
- Configure the Provider: provide a name for the provider, and the following required configurations.
- URL: the Base URL value from Productive.
- Token: the Bearer Token value from Productive.
- Under Attribute mapping:
- Remove
authentik default SCIM Mapping: Userfrom Selected User Property Mappings and addProductive SCIM user.
- Remove
-
Click Create.
Set SCIM provider as backchannel provider
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Applications and click the name of your Productive application.
- Click the plus (+) icon next to Backchannel Providers and select the SCIM provider that you created in the previous section.
- Click Save Changes.
Configuration verification
To confirm that authentik is properly configured with Productive, log out and open Productive in a private or incognito browser window. Click Use Single Sign-On (SSO), sign in with authentik, and confirm that you are redirected back to Productive.
To confirm that SCIM is properly configured, open the Productive SCIM provider in authentik and click the run button on the Full sync for SCIM provider task. After the sync completes, verify that users with access to the Productive application are provisioned in Productive.
Resources
- Productive Help Center - Single Sign-On (SSO)
- Productive Help Center - Enabling SSO Using Microsoft Entra
- Productive Help Center - Enabling SSO Using Google Workspace
- Productive Help Center - Automatically Sync Users Between Microsoft Entra and Productive with SCIM
- Productive Help Center - Configuring Optional SCIM Attribute Mappings in Microsoft Entra