OneIM WindowsPowerShellConnector UserGuide
OneIM WindowsPowerShellConnector UserGuide
One Identity Manager User Guide for the Windows PowerShell Connector
Updated - January 2020
Version - 8.1.2
Contents
Error handling 26
Help for the analysis of synchronization issues 26
About us 27
Contacting us 27
Technical support resources 27
Index 28
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector
3
1
You can use the Windows PowerShell connector to connect target systems to One Identity
Manager that do not have native support in One Identity Manager. Windows PowerShell
cmdlets are used to execute read/write operations in the target system.
The Windows PowerShell connector does not provide a project template for setting
up synchronization. You must create synchronization configuration components
(mappings, workflows, start up configurations ...) manually after the synchronization
project has been saved.
NOTE: You need strong knowledge of Windows PowerShell to set up synchronization with
the Windows PowerShell connector.
1. Install and configure a synchronization server and declare the server as Job server in
One Identity Manager.
2. Provide One Identity Manager users with the required permissions for setting up
synchronization and post-processing of synchronization objects.
3. Create a synchronization project with the Synchronization Editor.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 4
Connecting a target system using the Windows PowerShell connector
1. Mapping custom target systems
2. Mapping default tables (for example Person, Department)
3. Mapping custom tables
In the case of non-role-based login to One Identity Manager tools, it is sufficient to add one
system user in the DPR_EditRights_Methods permissions group. For detailed
information about system users and permissions groups, see the One Identity Manager
Authorization and Authentication Guide.
User Tasks
There are different steps required for role-based login, in order to equip One Identity
Manager users with the required permissions for setting up synchronization and post-
processing of synchronization objects.
Table 2: User and permissions groups for role-based login: Mapped as custom
target system
User Tasks
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 5
Connecting a target system using the Windows PowerShell connector
User Tasks
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 6
Connecting a target system using the Windows PowerShell connector
Table 3: User and permissions groups for role-based login: Mapped as default
tables
User Tasks
Table 4: Users and permissions groups for role-based login: Mapped in custom
tables
User Tasks
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 7
Connecting a target system using the Windows PowerShell connector
User Tasks
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 8
Connecting a target system using the Windows PowerShell connector
To set up an application role for synchronization (use case 2):
1. In the Manager, select the default application role to use to edit the objects you want
to synchronization.
l Establish the application role's default permissions group.
If you want to import employee data, for example, select the Identity
Management | Employees | Administrators application role. The default
permissions group of this application role is vi_4_PERSONADMIN.
2. In the Designer, create a new permissions group.
l Set the Only use for role based authentication option.
3. Make the new permissions group dependent on the vi_4_SYNCPROJECT_ADMIN
permissions group.
The vi_4_SYNCPROJECT_ADMIN permissions groups must be assigned as the parent
permissions group. This means that the new permissions group inherits the
properties.
4. Make the new permissions group dependent on the default permissions group of the
selected default application role.
The default permissions group must be assigned as a subgroup. This means that the
new permissions group inherits the properties.
5. Save the changes.
6. In the Manager, create a new application role.
a. Assign the selected application role to be the parent application role.
b. Assign the new permissions group.
7. Assign employees to this application role.
8. Save the changes.
1. In the Designer, create a new permissions group for custom tables, which are
populated though synchronization.
l Set the Only use for role based authentication option.
2. Guarantee this permissions group all the required permissions to the custom tables.
3. Create another permissions group for synchronization.
l Set the Only use for role based authentication option.
4. Make the permissions group for synchronization dependent on the permissions group
for custom tables.
The permissions group for custom tables must be assigned as parent permissions
group. This means the permissions groups for synchronization inherits its properties.
5. Make the permissions group for synchronization dependent on the vi_4_
SYNCPROJECT_ADMIN permissions group.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 9
Connecting a target system using the Windows PowerShell connector
The vi_4_SYNCPROJECT_ADMIN permissions groups must be assigned as the parent
permissions group. This means the permissions groups for synchronization inherits
its properties.
6. Save the changes.
7. In the Manager, create a new application role.
a. Assign the Custom | Managers application role as the parent
application role.
b. Assign the permissions group for the synchronization.
8. Assign employees to this application role.
9. Save the changes.
For detailed information about setting up application roles and permissions groups, see the
One Identity Manager Authorization and Authentication Guide.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 10
Connecting a target system using the Windows PowerShell connector
All One Identity Manager Service actions are executed against the target system
environment on the synchronization server. Data entries required for synchronization and
administration with the One Identity Manager database are processed by the
synchronization server. The synchronization server must be declared as a Job server in
One Identity Manager.
NOTE: If several target system environments of the same type are synchronized under
the same synchronization server, it is useful to set up a Job server for each target
system on performance grounds. This avoids unnecessary swapping of connections to
target systems because a Job server only has to process tasks of the same type (re-use
of existing connections).
Use the One Identity Manager Service to install the Server Installer. The program executes
the following steps:
NOTE: To generate processes for the Job server, you need the provider, connection
parameters, and the authentication data. In the default case, this information is determ-
ined from the database connection data. If the Job server runs through an application
server, you must configure extra connection data in the Designer. For detailed inform-
ation about setting up Job servers, see the One Identity Manager Configuration Guide.
NOTE: The program executes remote installation of the One Identity Manager Service.
Local installation of the service is not possible with this program. Remote installation is
only supported within a domain or a trusted domain.
To remotely install the One Identity Manager Service, you must have an
administrative workstation on which the One Identity Manager components are
installed. For detailed information about installing a workstation, see the One Identity
Manager Installation Guide.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 11
Connecting a target system using the Windows PowerShell connector
l Server: Name of the Job server.
l Queue: Name of the queue to handle the process steps. Each One
Identity Manager Service within the network must have a unique queue
identifier. The process steps are requested by the Job queue using
exactly this queue name. The queue identifier is entered in the One
Identity Manager Service configuration file.
l Full server name: Full server name in accordance with DNS syntax.
Syntax:
<Name of servers>.<Fully qualified domain name>
NOTE: You can use the Extended option to make changes to other properties
for the Job server. You can also edit the properties later with the Designer.
4. On the Machine roles page, select Job server.
5. On the Server functions page, select Windows PowerShell connector.
6. On the Service Settings page, enter the connection data and check the One Identity
Manager Service configuration.
NOTE: The initial service configuration is predefined already. If further changes
need to be made to the configuration, you can do this later with the Designer. For
detailed information about configuring the service, see the One Identity Manager
Configuration Guide.
l For a direct connection to the database:
a. Select Process collection | sqlprovider.
b. Click the Connection parameter entry, then click the Edit button.
c. Enter the connection data for the One Identity Manager database.
l For a connection to the application server:
a. Select Process collection, click the Insert button and select
AppServerJobProvider.
b. Click the Connection parameter entry, then click the Edit button.
c. Enter the connection data for the application server.
d. Click the Authentication data entry and click the Edit button.
e. Select the authentication module. Depending on the authentication
module, other data may be required, for example, user and password.
For detailed information about the One Identity Manager authentication
modules, see the One Identity Manager Authorization and
Authentication Guide.
7. To configure remote installations, click Next.
8. Confirm the security prompt with Yes.
9. On the Select installation source page, select the directory with the install files.
10. On the Select private key file page, select the file with the private key.
NOTE: This page is only displayed when the database is encrypted.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 12
Connecting a target system using the Windows PowerShell connector
11. On the Service access page, enter the service's installation data.
l Computer: Name or IP address of the server that the service is installed and
started on.
l Service account: User account data for the One Identity Manager Service.
l To start the service under the NT AUTHORITY\SYSTEM account, set
the Local system account option.
l To start the service under another account, disable the Local system
account option and enter the user account, password and password
confirmation.
l Installation account: Data for the administrative user account to install
the service.
l To use the current user’s account, set the Current user option.
l To user another user account, disable the Current user option and enter
the user account, password and password confirmation.
l To change the install directory, names, display names or description of the One
Identity Manager Service, use the other options.
12. Click Next to start installing the service.
Installation of the service occurs automatically and may take some time.
13. Click Finish on the last page of the Server Installer.
NOTE: In a default installation, the service is entered in the server’s service
management with the name One Identity Manager Service.
Data Explanation
Definition file You provide the required Windows PowerShell cmdlets, schema
types, schema properties and connection parameters in an XML
file.
Synchronization All One Identity Manager Service actions are executed against
server the target system environment on the synchronization server.
Data entries required for synchronization and administration
with the One Identity Manager database are processed by the
synchronization server.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 13
Connecting a target system using the Windows PowerShell connector
Data Explanation
Installed components:
Base object If no base object can be specified, you can assign a base table
and the synchronization server.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 14
Connecting a target system using the Windows PowerShell connector
Data Explanation
Variable set If you implement specialized variable sets, ensure that the start
up configuration and the base object use the same variable set.
1. Create a definition file, which described the structure of the target system and the
Windows PowerShell cmdlets to use.
2. Create a new synchronization project.
3. Add mappings. Define property mapping rules and object matching rules.
4. Create synchronization workflows.
5. Create a start up configuration.
6. Define the synchronization scope.
7. Specify the base object of the synchronization.
8. Specify the extent of the synchronization log.
9. Run a consistency check.
10. Activate the synchronization project.
11. Save the new synchronization project in the database.
For more detailed information about create the various components of the synchronization
configuration (for example, mappings, workflows, or start-up configuration), see the One
Identity Manager Target System Synchronization Reference Guide.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 15
Connecting a target system using the Windows PowerShell connector
system in XML notation. Create one XML file for this, which contains the entire definition.
The definition file is loaded when you configure synchronization in the project wizard. You
can create Synchronization Editor maps and synchronization workflows based on this
definition.
You can find an example of a definition file on the One Identity Manager installation
medium in ..\Modules\TSB\dvd\AddOn\SDK\[Link].
If you execute the project wizard in expert mode or directly from Synchronization Editor,
additional configuration settings can be made. Follow the project wizard instructions
through these steps.
1. Start the Launchpad and log on to the One Identity Manager database.
NOTE: If synchronization is executed by an application server, connect the
database through the application server.
3. On the System access page, specify how One Identity Manager can access the
target system.
l If access is possible from the workstation on which you started
Synchronization Editor, you do not need to make any settings.
l If access is not possible from the workstation on which you started
Synchronization Editor, you can set up a remote connection.
Enable the Connect using remote connection server option and select the
server to be used for the connection under Job server.
l Click Next to start the system connection wizard for connecting with the
Windows PowerShell.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 16
Connecting a target system using the Windows PowerShell connector
in to the target system in XML notation.
Property Description
Definition Definition that converts the target system schema into Cmdlet
calls. Enter the definition in XML notation.
a. To load the definition from a definition file, click .
b. To check the consistency of the definition, click .
6. Enter the data for the required connection parameter on the Connection data
page. All the parameters from the ConnectionParameters element of the XML
definition are queried.
7. You can save the connection data on the last page of the system connection wizard.
l Set the Save connection locally option to save the connection data. This can
be reused when you set up other synchronization projects.
l Click Finish, to end the system connection wizard and return to the
project wizard.
8. On the One Identity Manager Connection tab, test the data for connecting to the
One Identity Manager database. The data is loaded from the connected database.
Reenter the password.
NOTE: If you use an unencrypted One Identity Manager database and have not
yet saved any synchronization projects to the database, you need to enter all
connection data again. This page is not shown if a synchronization project
already exists.
9. The wizard loads the target system schema. This may take a few minutes depending
on the type of target system access and the size of the target system.
10. Select a project template on the Select project template page to use for setting up
the synchronization configuration.
HINWEIS:The Windows PowerShell connector does not provide a default project
template for setting up synchronization. If you have created your own project
template, you can select it to configure the synchronization project. Otherwise,
select Create blank project.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 17
Connecting a target system using the Windows PowerShell connector
11. Enter the general setting for the synchronization project under General.
Property Description
Script Language in which the scripts for this synchronization project are
language written.
Scripts are implemented at various points in the synchronization
configuration. Specify the script language when you set up an empty
project.
IMPORTANT: You cannot change the script language once the
synchronization project has been saved.
If you use a project template, the template's script language is
used.
Updating schemas
All the schema data (schema types and schema properties) of the target system schema
and the One Identity Manager schema are available when you are editing a
synchronization project. Only a part of this data is really needed for configuring
synchronization. If a synchronization project is finished, the schema is compressed to
remove unnecessary data from the synchronization project. This can speed up loading the
synchronization project. Deleted schema data can be added to the synchronization
configuration again at a later point.
If the target system schema or the One Identity Manager schema has changed, these
changes must also be added to the synchronization configuration. Then the changes can be
added to the schema property mapping.
To include schema data that have been deleted through compressing and schema
modifications in the synchronization project, update each schema in the synchronization
project. This may be necessary if:
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 18
Connecting a target system using the Windows PowerShell connector
l A schema in the synchronization project was shrunk by:
l Enabling the synchronization project
l Saving the synchronization project for the first time
l Compressing a schema
To edit a mapping
Starting synchronization
Synchronization is started using scheduled process plans. A scheduled process plan is
added once a start up configuration is assigned to a schedule. Use schedules to define
executing times for synchronization.
NOTE: Synchronization can only be started if the synchronization project is enabled.
To execute synchronization regularly, configure, and activate the a schedule. You can also
start synchronization manually if there is no active schedule.
IMPORTANT: As long as synchronization is running, you must not start another
synchronization for the same target system. This applies especially, if the same
synchronization objects would be processed.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 19
Connecting a target system using the Windows PowerShell connector
l Ensure that start up configurations that are used in start up sequences are
not started individually at the same time. Assign start up sequences and start
up configurations different schedules.
l If another synchronization is started with another start up configuration, that
addresses same target system, it may lead to synchronization error or loss of data.
Specify One Identity Manager behavior in this case, in the start up configuration.
l Use the schedule to ensure that the start up configurations are executed
in sequence.
l Group start up configurations with the same start up behavior.
If you want to specify the order in which target systems are synchronized, use the start up
sequence to run synchronization. In a start up sequence, you can combine start up
configurations from different synchronization projects and specify the order of execution.
For detailed information about start up configurations, see the One Identity Manager Target
System Synchronization Reference Guide.
Analyzing synchronization
Synchronization results are summarized in the synchronization log. You can specify the
extent of the synchronization log for each system connection individually. One Identity
Manager provides several reports in which the synchronization results are organized under
different criteria.
l In the Designer, enable the DPR | Journal | LifeTime configuration parameter and
enter the maximum retention period.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 20
Connecting a target system using the Windows PowerShell connector
incorrect data situation or an incorrect synchronization configuration.
Outstanding objects
This means, all memberships and assignments remain intact until the outstanding objects
have been processed.
Start target system synchronization to do this.
Related topics
Property Description
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 21
Connecting a target system using the Windows PowerShell connector
Property Description
Display name Name of the target system type as displayed in One Identity Manager
tools.
Show in compli- Specifies whether the target system type for compliance rule wizard
ance rule wizard can be selected when rule conditions are being set up.
Text snippet Text snippets used for linking text in the compliance rule wizard.
NOTE: The connector must have write access to the target system in order to publish
outstanding objects that are being post-processed. That means, the Connection is
read-only option must no be set for the target system connection.
l For each table for which you want to publish outstanding objects, create a process,
which is triggered by the event HandleOutstanding and which executes the
provisioning of the objects. Use the AdHocProjection process function of the
ProjectorComponent process component. For detailed information about defining
processes, see the One Identity Manager Configuration Guide.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 22
Connecting a target system using the Windows PowerShell connector
How to post-process outstanding objects
To post-process outstanding objects
Publish The object is added in the target system. The Outstanding label
is removed for the object.
The method triggers the HandleOutstanding event. This runs a
target system specific process that triggers the provisioning
process for the object.
Prerequisites:
l The table containing the object can be published.
l The target system connector has write access to the target
system.
l A custom process is set up for provisioning the object.
NOTE: By default, the selected objects are processed in parallel, which speeds up
execution of the selected method. If an error occurs during processing, the action is
stopped and all changes are discarded.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 23
Connecting a target system using the Windows PowerShell connector
Bulk processing of objects must be disabled if errors are to be localized, which means the
objects are processed sequentially. Failed objects are named in the error message. All
changes that were made up until the error occurred are saved.
Related topics
l Memberships are saved in the target system as an object property in list form
(Example: List of user accounts in the Members property of an Active Directory group).
l Memberships can be modified in either of the connected systems.
l A provisioning workflow and provisioning processes are set up.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 24
Connecting a target system using the Windows PowerShell connector
the mapping must be marked identically (for example, ADSAccountInADSGroup,
ADSGroupInADSGroup and ADSMachineInADSGroup).
4. Click Enable merging.
5. Save the changes.
For each assignment table labeled like this, the changes made in One Identity Manager are
saved in a separate table. During modification provisioning, the members list in the target
system is compared to the entries in this table. This means that only modified
memberships are provisioned and the members list does not get entirely overwritten.
NOTE: The complete members list is updated by synchronization. During this process,
objects with changes but incomplete provisioning are not handled. These objects are
logged in the synchronization log.
You can restrict single provisioning of memberships with a condition. Once single provi-
sioning has been disabled for a table, the condition is deleted. Table that have had the
condition deleted or edited are marked with the following icon: . You can restore the
original condition at any time.
1. Select the auxiliary table for which you want to restore the condition.
2. Right-click on the selected row and select the Restore original values
context menu item.
3. Save the changes.
For more detailed information about provisioning memberships, see the One Identity
Manager Target System Synchronization Reference Guide.
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 25
Connecting a target system using the Windows PowerShell connector
2
Error handling
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 26
Error handling
About us
About us
One Identity solutions eliminate the complexities and time-consuming processes often
required to govern identities, manage privileged accounts and control access. Our solutions
enhance business agility while addressing your IAM challenges with on-premises, cloud and
hybrid environments.
Contacting us
For sales and other inquiries, such as licensing, support, and renewals, visit
[Link]
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 27
About us
Index
I ndex
A P
application role 4 provisioning
application role for synchronztion 8 members list 24
B R
base object 13 remote connection server 13
C S
check definition 16 schema
consistency check 16 changes 18
shrink 18
D update 18
synchronization
definition file 15
start 19
synchronization analysis report 26
J
synchronization configuration 13, 16
Job server synchronization log 20
edit 10 synchronization server 13
configure 10
M install 10
modify provisioning 24
T
O target system synchronization
outstanding 20, 23
publish 23
outstanding object 20
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 28
Index
V
variable set 13
W
Windows PowerShell connector 4
workflow 13
One Identity Manager 8.1.2 User Guide for the Windows PowerShell
Connector 29
Index