# Integrating SailPoint with SAP Fieldglass SaaS

> [!NOTE]
>
> **Integration**
>
> This is an integration and requires additional licensing or subscriptions to utilize it. For more information, contact your customer success manager.

SAP Fieldglass is a Vendor Management System (VMS) that helps manage a contingent workforce and buyer company users. It helps businesses manage flexible workforces better, faster, and with more efficient control. It increases productivity by streamlining processes such as assignment management, contingent workforce management, services procurement, and worker profile management.

The SAP Fieldglass SaaS cloud integration with SailPoint's connector provides Identity Governance on buyer company users such as hiring managers, permanent employees of the buyer company, program management office users, and workers provided by Fieldglass. The integration also supports enforcing policies and permissions for granting and revoking access to buyer identities.

> [!NOTE]
>
> To view the latest features, enhancements, and fixes for all SaaS connectors, refer to the [SaaS Release Notes](<https://community.sailpoint.com/release-notes/saas>) page.

## Supported Features

The SAP Fieldglass SaaS connector supports the following features:

> [!IMPORTANT]
>
> Before you can use any of the following items marked with an asterisk (\*), SailPoint must activate the feature for your site.

- Aggregation

  - Account Aggregation
  - Groups Aggregation
- Add/Remove Entitlement

  - Groups
- Account Provisioning

  - Create User
  - Update User (Attributes)
  - Enable/Disable User

For more information on features, refer to [Source Features](<https://community.sailpoint.com/knowledge/Identity-Security-Cloud-Source-Features>).

## Privilege Classification

SailPoint Privilege Classification helps organizations systematically categorize and manage the privilege levels of entitlements within their sources. By classifying entitlements as high, medium, or low, administrators can better understand the potential risk and impact associated with specific access rights. This allows automatic assignment of privilege levels based on system recommendations, custom-defined criteria, or a same level across all entitlements.

| Privilege Level | Description |
| --- | --- |
| High | Administrative level access to accounts |
| Medium | Administrative level access for a specific role or function |
| Low | Only basic access of data |

> [!NOTE]
>
> To manage Privilege Classification, users must have administrative roles such as Org Admin, Source Admin or Source Sub-Admin.

For more information, refer to [Managing Privilege Classification](<https://documentation.sailpoint.com/saas/help/loading_entitlements/privilege_classification.html>).

> [!NOTE]
>
> **Example**
>
> [![Recommended Privilege Level - High](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/privilege_low.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/privilege_low.png>)
>
> [![Recommended Privilege Level - Medium](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/privilege_medium.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/privilege_medium.png>)

## Prerequisites

You must set up a Client Application to establish SAP Fieldglass integration with SailPoint and perform all the operations.

The client application uses the OAuth 2.0 client credentials to request a new access token as the initial step of accessing protected resources of SAP Fieldglass services.

### Create the X-Application Key

> [!NOTE]
>
> **Screenshot**
>
> [![Create the X-Application Key](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_app_key_1.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_app_key_1.png>) [![Create the X-Application Key](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_app_key_2.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_app_key_2.png>)

1. Sign in to Fieldglass with **Buyer** credentials.
2. Go to the linked accounts of the signed-in user as **Configuration Manager**.
3. Select the **API Application Key** tile.
4. Select **New**.
5. Enter your **Application Name** and **Description**.
6. Select **Create**. You will now see the details as **UserName** (Client ID), **Password** (Client Secret), **Application Key**, and **Application Name**.
7. Select **New** to create a new Web service for the created **Application Key**.
8. Set the Status as **Enabled**.
9. Select **Save**.

### Create the Report

> [!IMPORTANT]
>
> You will need *Analytics* access for creating and updating the Fieldglass reports.

> [!NOTE]
>
> The report creation steps are the same for all Fieldglass modules. In our case we need Buyer and Worker modules for report creation.

1. Create a report folder named *SailPoint* to maintain reports needed for the Fieldglass source. In SAP Fieldglass, go to **Admin Configuration \> Reports \> Report Folder** and create the *SailPoint* folder. Folders created under the SailPoint folder are used to associate reports to user roles.

   > **Screenshot**
   >
   > [![Create report folder](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_folders.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_folders.png>)
2. From the home page, select the **Analytics** button, and then select **Create Report**.
3. Select the desired reporting category. For example: User, Worker, etc. A report template based on your selection will appear. You will need to create three reports:

   - User Report
   - Worker Report
   - Single Worker Report

#### User Report Settings

1. For **User Report Settings**, select **Edit Report \> ASC**

   > **Screenshot**
   >
   > [![User Report Settings](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_user_settings.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_user_settings.png>)
2. Set the report filters as shown in the following screenshot.

   > **Screenshot**
   >
   > [![Report filters](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_filters.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_filters.png>)
3. Select **Details**, and then select the **JSON** radio button.

   > **Screenshot**
   >
   > [![Report details](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_details.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_details.png>)
4. Select the **Visibility** settings.

   > **Screenshot**
   >
   > [![Report visibility](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_visibility.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_visibility.png>)

#### Single Worker Report Settings

> [!NOTE]
>
> The following fields, filters, and details are required for each report creation of the Worker Report and Single Worker Report. This information is needed for worker data aggregation.

1. For **Worker Report Settings**, select **Edit Report \> ASC**.

   > **Screenshot**
   >
   > [![Worker report settings](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings.png>) [![Worker report settings](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings_2.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings_2.png>)
2. The **SP Consolidated Worker ID** is a custom field. It must be created using the **Add Formula** link on the report creation page with the following details.

   > **Screenshot**
   >
   > [![Worker ID formula](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_id_formula_1.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_id_formula_1.png>) [![Worker ID formula](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_id_formula_2.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_id_formula_2.png>)

#### Worker Report Settings

1. For **Worker Report Settings**, select **Edit Report \> ASC**.

   > **Screenshot**
   >
   > [![Worker report settings](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings.png>) [![Worker report settings](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings_2.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_settings_2.png>)
2. Create two more fields.

   - **SP Worker Start date**.

     Formula:

     ```text
     [Worker | Details | Worker Start Date]
     ```

     > **Screenshot**
     >
     > [![Worker start date](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_start_date.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_start_date.png>)
   - **SP Worker End Date**

     Formula:

     ```text
     ISBLANK([Worker | Details | Worker End Date],"12/31/9999")
     ```

     > **Screenshot**
     >
     > [![Worker end date](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_end_date.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_end_date.png>)
3. Select **Validate** to validate the formula.
4. The following filters are mandatory to fetch the workers' report. However, users can change the values of the filters according to their requirements. The date format in User Preferences must be set to MM/DD/YYYY.

   > **Screenshot**
   >
   > [![Worker report filters](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_filters.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_filters.png>)
5. Select **Details**, and then select the **JSON** radio button.

   > **Screenshot**
   >
   > [![Worker report details](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_details.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_worker_details.png>)
6. Select the **Visibility** settings.

   > **Screenshot**
   >
   > [![Report visibility](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_visibility.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_visibility.png>)
7. Templates can be modified based on the requestors' needs. From the **Fields** side bar, any field can be added to the current template via the drag and drop method. The columns can be reordered and renamed, and the values can be sorted in ascending or descending order. Filters can be applied regarding time or a specific status on the report.

   > **Note**
   >
   > - Remember that the template filters differ based on the reporting category selected earlier.
   > - **SP Worker End Date** and **SP Worker Start Date** will be overridden with the current date when aggregation executes. Additionally, if the **Future** or **Terminated offset** is configured. then it is used along with the current date to fetch the worker records.
8. Once the report has been configured, give it a name and choose the desired output format.
9. Select the **Show More Configuration** link, and set the **API Enabled** option to **Yes**.
10. **Save** the report.

#### How to obtain the ID of the Report

You will need the ID of the created report to provide in **Aggregation Settings** for the user and worker configurations.

1. Select your report name from the list.
2. Select the **Edit** option
3. The link url will contain the ID of the report

   > **Screenshot**
   >
   > [![Report ID](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_id.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_report_id.png>)

### Create the Connector Integration

1. Sign in with Configuration Manager access to the SAP Fieldglass portal.
2. Go to **Connectors** integration tools.
3. Search and open the **User Upload** connector from the connector list.
4. Select **Actions** and then select the **Create Variant** option to set the connector integration variant for provisioning.
5. Select **Start**, and then go to the **Enable** step. Enter the new connector name and select the values as shown below, then select **Next**.

   > **Screenshot**
   >
   > [![Create connector integration - enable](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_1.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_1.png>)
6. Enter the **Setup** details as shown below.

   > **Screenshot**
   >
   > [![Create connector integration - setup](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_2.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_2.png>)
7. Keep the default value as-is on the **Header Values** window.
8. In the **Security** window, change the value for the **Sensitive Data** and **Enable connector to be used through user interface? (optional)** fields.

   > **Screenshot**
   >
   > [![Create connector integration - security](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_3.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_3.png>)
9. Keep the default settings as-is in the **Configure Column Transformation** window and the **Connectivity** window.

   > **Screenshot**
   >
   > [![Create connector integration - connectivity](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_4.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/create_connector_integration_4.png>)
10. Select **Next** to finish.
11. Use the variant name created in the **Connector Integration Variant** field for the source.

### Configure Additional Attributes via Report

This configuration is needed when you want to GET or SET the attributes other than those included out-of-the-box.

#### SAP Fieldglass Configuration

1. In SAP Fieldglass, go to the existing **User Report** and select **Edit**.
2. Go to **Fields \> Name** and enter the name you want to search for.
3. Select the magnifying glass to perform the search.

   > **Screenshot**
   >
   > [![Configure additional attributes via report](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/configure_additional_attributes_report.png>)](<https://documentation.sailpoint.com/connectors/sap/fieldglass/saas/help/img/configure_additional_attributes_report.png>)
4. Drag and drop fields from the navigation pane into the Columns area to add it (as a column) to your report.
5. Select **Save**.

#### Connector Configuration

1. Add the new schema attribute by going to the **Source \> Schema Attribute \> New Schema Attribute**.
2. Add the attribute you need and then select **Save**.
3. Add the json mapping for the attribute under the \<entrykey="jsonPathMappingForReports"\> via rest api to the source.

   For example,

   ```text
   example entry for currency field 
   <entry key="Currency">
                 <value>
                   <Map>
                     <entry key="userReportAttrName" value="Currency"/>
                     <entry key="workerReportAttrName"/>
                 </Map>
             </value>
   </entry>
   ```

### Configure Additional Attributes with SCIM

SailPoint supports SCIM for some additional attributes. You can configure them by performing the following steps:

1. Add the new schema attribute by going to **Source \> Schemas \> Add New Schema Attribute**. The attribute must have a complex name. For example, addresses.work.primary.locality
2. Add the json path for the attribute under the key "jsonPathMapping"

   For example, `<entry key="addresses.work.primary.locality" value="addresses[*][?(@.primary==true)].locality"/>`

## Required Permissions

The SAP Fieldglass Service user must have the following two roles assigned to perform connector operations:

- Configuration Manager
- Administrator
