Importing users with the Salesforce Platform license from an LDAP server
The following topics provide information about importing users with the Salesforce Platform license from an LDAP server into your Salesforce organization:
You can import users into your Salesforce organization by using the Pentaho Data Integration tool. The Pentaho package for importing users with the Salesforce Platform license from an LDAP server is available on the BMC Communities website. For information about how users are imported into your Salesforce organization, see Overview of how users are imported from LDAP servers.
KJB and KTR files for importing users from an LDAP server
In Pentaho, metadata is stored in XML format in the file system as KTR (transformations) or KJB files (jobs). The Pentaho package includes the TransferLDAPInfo.kjb file (job file) for importing users from an LDAP server. The job (KJB) file contains a series of transformations that run in a sequence. Each transformation maps to a KTR file that is available, along with the KJB file, in the Pentaho package. The following table provides information about the KTR files and the corresponding transformations that the KJB file contains:
KTR file | Step or transformation in the KJB file | Description |
---|---|---|
LookUpExcelExport.ktr | Transfer Lookup Excel Export | Exports profiles, accounts, user role, and user-account links from the Salesforce organization into separate CSV files. |
None | Check if delta timestamp file exists | Checks if any time stamp file exists. The Pentaho package utilizes a time stamp file to determine which records were added or modified since the last time the job was run. This step is used for incremental import. If a time stamp file does not exist, the Create the initial timestamp file step is executed; otherwise, the Update client user import table with LDAP user information step. |
CreateInitialTimeStampedFileForLDAP.ktr | Create the initial time stamp file | Creates the time stamp file to record the time of import. This step is executed only if you are importing for the first time or you have deleted the existing time stamp file. |
TransferLDAPInfo.ktr | Update client user import table with LDAP user information | Transfers data from LDAP server to the Salesforce organization. |
StoreLDAPTimestamp.ktr | Store the current timestamp | If the data import is successful, the time of import is saved. |
The following table provides information about the steps that are included in the TransferLDAPInfo.ktr file (Update client user import table with LDAP user information transformation). The Pentaho package runs these steps to import users from the LDAP server into your Salesforce organization. You can view these steps only when you open the KTR file in the Pentaho Data Integration tool. The KTR file also contains mapping of the fields in the LDAP server to the fields in the Client User Import table. For more information about mapping, see Overview of how users are imported from LDAP servers.
Step | Description |
---|---|
Delta timestamp | Reads the saved time stamp. |
Create time based LDAP filter string | Creates a time-based LDAP filter string that is used to fetch the new records added since you last ran the job successfully. |
LDAP input | Uses the LDAP filter string to fetch the defined attributes of the records from the LDAP server. |
Dynamic account and profile assignment | Enables assigning account and profile information to the records that are imported based on any of the LDAP attribute. |
Sort | Sorts the users that are imported from the LDAP server. |
Find Unique Rows | Checks that the imported users are unique so that duplicate records are not created in your Salesforce organization. |
Excel Output | Creates a CSV file that contains unique imported users. |
Stream lookup [For Profile] | Retrieves profiles that were exported from the Salesforce organization to a CSV file in the Transfer LookUp Excel Export transformation (LookUpExcelExport.ktr file) |
Stream lookup [For UserRole] | Retrieves user roles that were exported from the Salesforce organization to a CSV file in the Transfer LookUp Excel Export transformation (LookUpExcelExport.ktr file). |
Stream lookup [For Account] | Retrieves accounts that were exported from the Salesforce organization to a CSV file in the Transfer LookUp Excel Export transformation (LookUpExcelExport.ktr file). |
Salesforce Upsert [For User] | Transfers data from the LDAP server to the Salesforce organization. |
Filter rows[Account Id is present] | Retrieves only those imported user records that have an associated account. |
Stream lookup | Retrieves the user-account links that were exported from the Salesforce organization to a CSV file in the Transfer LookUp Excel Export transformation (LookUpExcelExport.ktr file). |
Filter rows[For User Account Link] | Retrieves only those imported user records that have an existing user-account link in the Salesforce organization. |
Salesforce Insert[For User Account Link] | Creates a user-account link for imported users who do not have an existing user-account link in the Salesforce organization. |
Junction Insert Success Rows | Stores the rows that are imported successfully. |
Junction Insert Failure Rows | Stores the rows that are not imported with error code, error description, and error fields. |
Salesforce Update | Updates the user-account link for imported users who have an existing user-account link in the Salesforce organization. |
Junction Update Success Rows | Stores the rows that are imported successfully. |
Junction Update Failure Rows | Stores the rows that are not imported with error code, error description, and error fields. |
Before you begin
Before you can import users from an LDAP server, you must perform the following tasks:
- Register at the BMC Communities website.
- Download the Pentaho package from the BMC Communities website (https://communities.bmc.com/docs/DOC-17004).
BMC recommends that you download the job files in the folder in which you have unzipped the Pentaho Data Integration tool.
To import users with Salesforce Platform License from an LDAP server
- To launch the Pentaho Data Integration tool, in the \pdi-ce-4.x.0-stable\data-integration or pdi-ce-5.0.1.A-stable\data-integration folder, double-click the Spoon.bat file.
- In Pentaho Spoon, select File > Open, navigate to the folder where you downloaded the Pentaho packages, and open the TransferLDAPInfo.kjb file.
- To open the Lookup Excel Export (transformation) file, right-click the Transfer LookUpExcelExport step, and select Open referenced object > Transformation.
- To provide your Salesforce organization access details, perform the following actions:
- On the Transfer LookUpExcelExport tab, double-click the Salesforce Input [For Profile] step.
- In the Salesforce Input window, enter your Salesforce organization user name and password.
- (Optional) To verify the connection, click Test connection.
- Click OK.
- Repeat step a to step d for Salesforce Input [From Account], Salesforce Input [From UserRole], and Salesforce Input [From User Account Link] steps.
- To provide LDAP server access details, perform the following actions:
- Navigate to the TransferLDAPInfo.kjb file.
- Right-click the Update client user import table with LDAP user information step, and select Open referenced object > Transformation.
- Double-click the LDAP input step.
- In the LDAP Input window, enter the host, user name, and password of the LDAP server from which you are importing users.
- (Optional) To verify the connection, click Test connection.
- Click OK.
- (Optional) To fetch more fields from the LDAP server, in the Fields tab, click Get Fields.
- (Optional) Double-click the Dynamic account and profile assignment step, and perform any of the following actions:
- Modify or assign the default value for account, profile, role, and custom values for specific conditions in the script.
- Modify the default value for the Locale, Language, TimeZone, and EmailEncoding fields.
Double-click the Salesforce Upsert [For User] step and enter your Salesforce organization user name and password.
Note
If you are using earlier versions of the Pentaho data integration tool (for example, Pentaho 4.1 or 4.2, you must modify the Salesforce Webservice URL to https://www.salesforce.com/services/Soap/u/20.0.
- (Optional) To update the predefined mapping between the LDAP fields and the Salesforce User object, click Edit Mapping.
For more information about mapping, see Overview of how users are imported from LDAP servers. (Optional) To verify the connection, click Test connection.
- Click OK.
To provide your Salesforce organization access details in the Update client user import table with LDAP user information step (TransferLDAPInfo.ktr file), perform the following actions:
- Double-click the Salesforce Insert [For User Account Link] step.
- Enter the user name and password details in the respective fields.
- (Optional) To verify the connection, click Test connection.
- Click OK.
- Double-click the Salesforce Update step.
- Enter the user name and password details in the respective fields.
- (Optional) To verify the connection, click Test connection.
- Click OK.
- (Optional) If you have enabled the setting to access your Salesforce organization from limited IP addresses, to enable communication between Salesforce and the Pentaho Data Integration tool, perform the following actions:
In Salesforce, navigate to Setup > Reset My Security Token.
Note
If you have enabled the improved Setup user interface in your Salesforce organization, navigate to My Settings > Personal > Reset My Security Token. For more information, see http://help.salesforce.com/apex/HTViewHelpDoc?id=admin_setup_improved.htm&language=en_US.
- Click Reset Security Token.
An email message is sent to your email address stored in Salesforce. - In the Password field of the Salesforce Upsert [For User] step, append the security token to the password.
For example, if your password is mypassword and your security token is XXXXXXXXX, then you must enter mypasswordXXXXXXXXX in the Password field.
You must also append the security token to the password in all steps in which you have entered the user name and password of your Salesforce organization.
- To save the KTR and KJB files, click
- In the TransferLDAPInfo.kjb file, click
- In the Execute a job window, click Launch.
Complete transformations are depicted using . indicates currently running transformations, andindicates unsuccessful transformations. - (Optional) To view logs, in the Execution results section, click the Logging tab.
All errors are displayed in red.
Related topics
Overview of how users are imported from LDAP servers
Comments
Log in or register to comment.