PeopleSoft connector
The PeopleSoft connector lets you manage and synchronize accounts between Oracle PeopleSoft and IDM managed user objects. A PeopleSoft administrator account is required for this connector to work.
Before you start
Before you configure the connector, log in to your PeopleSoft administrator account and note the following:
- Host
-
The host address of the PeopleSoft instance.
- Port
-
The port for the PeopleSoft instance.
- User ID
-
The username to log into the PeopleSoft instance.
- Password
-
The password to log into the PeopleSoft instance.
- Domain Connect Password
-
The domain connection password for the PeopleSoft WebLogic application server.
Install the PeopleSoft connector
-
Download the connector .jar file from the ForgeRock BackStage download site.
-
If you are running the connector locally, place it in the
/path/to/openidm/connectors
directory, for example:mv ~/Downloads/peoplesoft-connector-1.5.20.9.jar /path/to/openidm/connectors/
-
If you are using a remote connector server (RCS), place it in the
/path/to/openicf/connectors
directory on the RCS.
-
-
Download the connector dependencies.
-
psjoa.jar
is a file unique to each installation of PeopleSoft. It is compiled and provided by your PeopleSoft administrator. If it is not provided to you, see Generatepsjoa.jar
-
psft.jar
is generated by the following commands:set CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CLASSPATH% jar cvf psft.jar .\PeopleSoft\Generated\CompIntfc*.class
-
Generate psjoa.jar
This procedure is only required if your PeopleSoft Administrator did not provide psjoa.jar .
|
-
Start PeopleSoft Application Designer, and open any Component Interface definition.
-
Select Build > PeopleSoft APIs.
The Build PeopleSoft API Bindings window displays.
-
Under the Java Classes group box, select Build, and specify a target directory.
-
To build the selected bindings, click OK.
The app builds the selected bindings in the specified directory. If the operation is successful, a Done message appears in the PeopleSoft Application Designer Build window.
-
Compile the generated APIs:
cd %PS_HOME%\class\PeopleSoft\Generated\CompIntfc javac −classpath %PS_HOME%\class\psjoa.jar *.java cd c:\pt8\class\PeopleSoft\ Generated\ PeopleSoft javac −classpath %PS_HOME%\class\psjoa.jar *.java
cd $PS_HOME/class/PeopleSoft/Generated/CompIntfc javac classpath $PS_HOME/class/psjoa.jar *.java cd $PS_HOME/class/PeopleSoft/Generated/PeopleSoft javac classpath $PS_HOME/class/psjoa.jar *.java
-
Copy
psjoa.jar
and generated jar into/path/to/openicf/lib
.
Configure the PeopleSoft connector
Create a connector configuration using the admin UI:
-
Select Configure > Connectors and click New Connector.
-
Enter a Connector Name.
-
Select PeopleSoft Connector - 1.5.20.9 as the Connector Type.
-
Provide the Base Connector Details.
-
Click Save.
When your connector is configured correctly, the connector displays as Active in the admin UI.
Alternatively, test that the configuration is correct by running the following command:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Accept-API-Version: resource=1.0" \ --request POST \ "http://localhost:8080/openidm/system/peoplesoft?_action=test" { "name": "peoplesoft", "enabled": true, "config": "config/provisioner.openicf/peoplesoft", "connectorRef": { "bundleVersion": "[1.5.0.0,1.6.0.0)", "bundleName": "org.forgerock.openicf.connectors.peoplesoft-connector", "connectorName": "org.forgerock.openicf.connectors.peoplesoft.PeopleSoftConnector" }, "displayName": "PeopleSoft Connector", "objectTypes": [ "__ACCOUNT__", "__ALL__" ], "ok": true }
If the command returns "ok": true
, your connector has been configured correctly, and can authenticate to the PeopleSoft system.
Use the PeopleSoft connector
The following PeopleSoft account attributes are supported by the PeopleSoft connector:
Attribute | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The name of the user. Required. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ID of the user. Required. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The type of ID and ID value for the user. Required. This is an object, containing
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Alias ID of the user. This should be a fully qualified email address. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A description of the user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Primary permission list for the user. Displays which permissions the user is granted in the primary permission list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Row security permission list for the user. Displays which permissions the user is granted in the row security permission list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Process profile permission list for the user. Displays which permissions the user is granted in the process profile permission list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Navigator home permission list for the user. Displays which permissions the user is granted in the navigator home permission list. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The symbolic ID of the user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The user’s language preference.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Enable support for multiple languages for the user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Whether the user account is locked. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Three letter code for the user’s preferred currency. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The number of failed logins for the user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Whether the user is marked as an expert. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The type of operation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Determines whether the user has access to user switching. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Number of worklist entries associated with the user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Whether there is a worklist associated with the user. Must be either |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Email preference of the user. Must be either |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fallback user to route to if the user is unavailable. This must be filled out if you specify |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Effective start date that a user will be unavailable. Must be in |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Effective end date, marking when a user will become available again. Must be in |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
List of email addresses associated with the user. This is an object, with
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
List of roles the user has. Users inherit permissions based on the roles the user has. This is an object, with
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The password for the user. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Used to confirm the password of the user. This needs to match the user’s password. |
You can use the PeopleSoft connector to perform the following actions on an PeopleSoft account:
Create a PeopleSoft user
The following example creates a user with the minimum required attributes:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --request POST \ --data '{ "__NAME__": "Barbara Jensen", "UserID": "BJENSEN", "IDTypes": [{ "IDType": "EMP", "AttributeValue": "0001" }] }' \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__?_action=create" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "Y", "__ENABLE__": 0, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "Y", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
When you create a new user, you must specify at least |
Update a PeopleSoft user
You can modify an existing user with a PUT request, including all attributes of the account in the request. The following attributes can be modified on a user:
-
UserIDAlias
-
UserDescription
-
PrimaryPermissionList
-
RowSecurityPermissionList
-
ProcessProfilePermissionList
-
NavigatorHomePermissionList
-
SymbolicID
-
LanguageCode
-
MultiLanguageEnabled
-
AccountLocked
-
CurrencyCode
-
FailedLogins
-
ExpertEntry
-
Opertype
-
AllowSwitchUser
-
WorklistUser
-
EmailUser
-
AlternateUserID
-
EffectiveDateFrom
-
EffectiveDateTo
-
EmailAddresses
-
Roles
-
IDTypes
-
Password
-
ConfirmPassword
For example, to update the EmailAddresses
for a user:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --header "If-Match:*" \ --request PUT \ --data '{ "__NAME__": "Barbara Jensen", "UserID": "BJENSEN", "IDTypes": [{ "IDType": "EMP", "AttributeValue": "0001" }], "EmailAddresses": [{ "EmailType":"BUS", "EmailAddress":"test@example.com", "PrimaryEmail":"Y" }] }' \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__/BJENSEN" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "Y", "__ENABLE__": 0, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "EmailAddresses": [ { "EmailType": "BUS", "EmailAddress": "test@example.com", "PrimaryEmail": "Y" } ], "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "Y", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
Query PeopleSoft users
The following example queries all PeopleSoft users:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --request GET \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__?_queryId=query-all-ids" { "result": [ { "_id": "AZIGLAR" }, { "_id": "BCHALMERS" }, { "_id": "BDAVIS" }, { "_id": "BFRANCISCO" }, { "_id": "BGONZALES" }, { "_id": "BJENSEN" }, { "_id": "BLOCHERTY" }, [ ... ] { "_id": "SUNDERWOOD" }, { "_id": "SVANDERSTEEN" }, { "_id": "SWALTERS" }, { "_id": "TCORY" }, { "_id": "TELLIS" } ], "resultCount": 300, "pagedResultsCookie": null, "totalPagedResultsPolicy": "NONE", "totalPagedResults": -1, "remainingPagedResults": -1 }
The following command queries a specific user by their ID:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --request GET \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__/BJENSEN" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "Y", "__ENABLE__": 0, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "EmailAddresses": [ { "EmailType": "BUS", "EmailAddress": "test@example.com", "PrimaryEmail": "Y" } ], "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "Y", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
Reset a PeopleSoft user account password
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --header "if-Match:*" \ --request PUT \ --data '{ "__PASSWORD__": "Passw0rd", "__CURRENT_PASSWORD__": "Passw0rd" }' \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__/BJENSEN" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "Y", "__ENABLE__": 0, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "EmailAddresses": [ { "EmailType": "BUS", "EmailAddress": "test@example.com", "PrimaryEmail": "Y" } ], "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "Y", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
While the |
Enable a PeopleSoft user
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --header "If-Match:*" \ --request PUT \ --data '{ "__NAME__": "Barbara Jensen", "__ENABLE__": 1 }' \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__/BJENSEN" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "N", "__ENABLE__": 1, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "EmailAddresses": [ { "EmailType": "BUS", "EmailAddress": "test@example.com", "PrimaryEmail": "Y" } ], "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "N", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
Disable a PeopleSoft user
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --header "If-Match:*" \ --request PUT \ --data '{ "__NAME__": "Barbara Jensen", "__ENABLE__": 0 }' \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__/BJENSEN" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "N", "__ENABLE__": 0, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "EmailAddresses": [ { "EmailType": "BUS", "EmailAddress": "test@example.com", "PrimaryEmail": "Y" } ], "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "N", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
Delete a PeopleSoft user account
You can use the PeopleSoft connector to delete an account from the PeopleSoft service.
The following example deletes an PeopleSoft account:
curl \ --header "X-OpenIDM-Username: openidm-admin" \ --header "X-OpenIDM-Password: openidm-admin" \ --header "Content-Type: application/json" \ --request DELETE \ "http://localhost:8080/openidm/system/peoplesoft/__ACCOUNT__/Barbara_Jensen" { "_id": "BJENSEN", "ExpertEntry": 0, "LanguageCode": "ENG", "EmailUser": "N", "__ENABLE__": 0, "__NAME__": "Barbara Jensen", "IDTypes": [ { "IDType": "EMP", "AttributeValue": "0001" } ], "Encrypted": 1, "EmailAddresses": [ { "EmailType": "BUS", "EmailAddress": "test@example.com", "PrimaryEmail": "Y" } ], "UserID": "BJENSEN", "Opertype": 0, "MultiLanguageEnabled": 0, "WorklistUser": "N", "WorklistEntriesCount": 0, "AllowSwitchUser": 0, "FailedLogins": 0 }
OpenICF Interfaces Implemented by the PeopleSoft Connector
The PeopleSoft Connector implements the following OpenICF interfaces. For additional details, see ICF interfaces:
- Create
-
Creates an object and its
uid
. - Delete
-
Deletes an object, referenced by its
uid
. - Schema
-
Describes the object types, operations, and options that the connector supports.
- Script on Connector
-
Enables an application to run a script in the context of the connector.
Any script that runs on the connector has the following characteristics:
-
The script runs in the same execution environment as the connector and has access to all the classes to which the connector has access.
-
The script has access to a
connector
variable that is equivalent to an initialized instance of the connector. At a minimum, the script can access the connector configuration. -
The script has access to any script arguments passed in by the application.
-
- Search
-
Searches the target resource for all objects that match the specified object class and filter.
- Test
-
Tests the connector configuration.
Testing a configuration checks all elements of the environment that are referred to by the configuration are available. For example, the connector might make a physical connection to a host that is specified in the configuration to verify that it exists and that the credentials that are specified in the configuration are valid.
This operation might need to connect to a resource, and, as such, might take some time. Do not invoke this operation too often, such as before every provisioning operation. The test operation is not intended to check that the connector is alive (that is, that its physical connection to the resource has not timed out).
You can invoke the test operation before a connector configuration has been validated.
- Update
-
Updates (modifies or replaces) objects on a target resource.
PeopleSoft Connector Configuration
The PeopleSoft Connector has the following configurable properties:
Configuration properties
Property | Type | Default | Encrypted(1) | Required(2) |
---|---|---|---|---|
|
|
|
|
Yes |
Host name or IP address to connect to PeopleSoft server |
||||
|
|
|
|
Yes |
Port to connect to PeopleSoft server |
||||
|
|
|
|
Yes |
The userid used to login to PeopleSoft server |
||||
|
|
|
Yes |
Yes |
The password used to login to PeopleSoft server |
||||
|
|
|
Yes |
Yes |
The password for PeopleSoft app server domain |
(1) Whether the property value is considered confidential, and is therefore encrypted in IDM.
(2) A list of operations in this column indicates that the property is required for those operations.