Setup Guide

New Identity Type plugin

An identity type is used to define the different identities (employees, partners, etc.) which are managed by the application. This plugin creates a new identity type on your tenant, with the features and the deduplication policy that the administrators need to manage it.

This page explains what the plugin generates, the prerequisites on the tenant and how to use the result.

New Identity Type plugin

Memority provides a plugin in the MIT Plugin Store that creates a new identity type. The plugin generates all the configuration files that your tenant needs.

Prerequisites

In addition to the common plugin prerequisites, this plugin requires:

Prerequisite

Description

1

Files updated by the plugin

The plugin adds its configuration to four files that must exist in the tenant project: administrator-featureAccessPolicy.xml, ui.usr.menu.entries.xml, _citadel-i18n_export.xml and roleAllowedIdentityTypes.xml. A project initialized with MIT has them.

2

Menu entry reporting-category

The plugin adds the new menu entry before this entry. If it does not exist, the new entry is added at the end of the menu.

3

Common features

The cockpit and the read feature use these features: identity-common-role, identity-common-security, identity-common-suspend, identity-common-unsuspend, identity-common-audit and identity-common-scheduledOperations. Without them, the delivery of the configuration can fail.

4

Root organization

The create form uses the organization AA0000 as default value.

Installation

The plugin is installed with the standard procedure described on the Memority Plugins page. This section only gives the information that is specific to the New Identity Type plugin.

Installation mode: repeatable with distinct values. You can install the plugin once per identity type. See Several identity types.

Plugin form parameters

All three fields are mandatory and have no default value.

Parameter

Description

Example

1

Id

Identifier of the new identity type. Lower-case letters only. Digits, hyphens and underscores are not supported.

partner

2

EN translation

English display name of the identity type. It appears in the menu and on the screens. Letters and hyphens only: no space, no digit, no accent.

Partner

3

FR translation

French display name of the identity type. Same rule as the English name.

Partenaire

Secrets

The plugin needs no secret. Step 7 of the standard procedure does not apply.

Data import

The plugin generates no data to import. Step 10 of the standard procedure does not apply.

Several identity types

You can install the plugin again to create another identity type. Follow these two rules:

  1. Use a new ID. The ID must not be used by an identity type or a file that already exists in the tenant project. If the ID is already used, the plugin cannot generate the configuration.

  2. Change the deduplication policy by hand. Each installation generates a deduplication policy with the assignment priority 1. Memority does not accept two deduplication policies with the same priority on the same object kind. After the installation, change the assignmentPriority value in identity-<id>-deduplicationPolicy.xml to a value that no other policy uses. Then deliver the configuration.

What does it do ?

The generated configuration works out of the box, but it may need adjustments for specific client needs.

The plugin creates the identity type, its screens, its deduplication policy, its labels in French and English, and a menu entry. The new identity type is ready to use as soon as the configuration is delivered.

Identity data model

The identity type uses the attributes below. The attributes must exist in the tenant: a project initialized with MIT has them. For the meaning of each property, see Attributes and Identity Type.

Attribute

Mandatory

In the create form

firstName

Yes

Yes

lastName

Yes

Yes

email

Yes

Yes

commonName

No

No

login

No

No

organization

No

Yes, AA0000 by default

manager

No

Yes

msSamAccountName

No

No

photo

No

Yes

activationFrom, activationUntil

No

Yes

adminSuspensionsFrom, adminSuspensionsUntil

No

No

adminEnablesFrom, adminEnablesUntil

No

No

  • Identity ID: random, two upper-case letters and four digits (for example AB1234).

  • Deduplication: an identity with the same first name and the same last name, checked on creation and on update.

Screens

After the delivery, the menu has a new entry with the display name of the identity type. This entry opens a search of the identities of the type. From the search, an administrator can:

  • Create an identity. The create button opens the deduplication check first. If a similar identity exists, the user can update it or create the new identity anyway. If none exists, the create form opens. After the creation, the cockpit of the new identity opens.

  • Open the cockpit of an identity. The cockpit has a banner with the name and the photo of the identity. It gives access to the identity, to its roles and to its authentication modes.

  • Read an identity. The identity view shows the identity, its organization and its technical information. The activities view shows the reports of authentications and imports of the last three months. The accounts view shows the accounts of the identity.

  • Update an identity. The update button is shown when the identity is a draft or is active.

  • Suspend and unsuspend an identity. The buttons depend on the status of the identity.

  • Reactivate a retired identity. The user fills the activation dates, the organization and the manager again.

  • Open the audit and the scheduled operations of the identity, from the actions menu.

Access rights

The plugin gives access to the new features to the administrators only (right adm.administrator-features). To give access to other profiles, add the features to their feature access policy. The plugin creates no role and no application.

Technical details

<id> in the generated file names is replaced by the Id entered in the plugin form.

Generated files

File

Path

Description

<id>.xml

im/idm/src/main/resources/IdentityType/Plugins/IdentityType/<id>/

Identity type: attributes, ID generation rule, security organization scope

identity-<id>-search.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Search feature

identity-<id>-deduplication.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Deduplication feature

identity-<id>-create.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Create feature

identity-<id>-hub.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Cockpit of the identity

identity-<id>-read.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Read feature: identity, activities and accounts

identity-<id>-update.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Update feature

identity-<id>-reactivate.xml

im/bum/src/main/resources/FeatureConfiguration/Identity/Plugins/IdentityType/<id>/

Reactivate feature

identity-<id>-deduplicationPolicy.xml

im/idm/src/main/resources/DeduplicationPolicy/Plugins/IdentityType/

Deduplication policy

Updated files

File

Path

Description

administrator-featureAccessPolicy.xml

im/bum/src/main/resources/FeatureAccessPolicy/

Adds the seven features to the administrator feature access policy

ui.usr.menu.entries.xml

im/bum/src/main/resources/Setting/

Adds the menu entry of the search feature, before reporting-category

_citadel-i18n_export.xml

shared/i18n/src/main/resources/

Adds the labels of the features, in French and English

roleAllowedIdentityTypes.xml

im/idm/src/main/resources/ReferenceTable/

Adds the identity type to the reference table of the identity types that roles accept

Troubleshooting

For issues with the Plugin Store itself (plugin not found, installation error), see the troubleshooting section of the Memority Plugins page.

The installation of the plugin fails

  • Cause: The installation stopped before the end. Some files can already be generated or updated. The plugin never overwrites an existing file, so the next installation also fails.

  • Fix: Clean the project completely: delete all the generated files and revert the changes in the updated files (see Technical details). Then install the plugin again.

The installation fails with "Target file not found"

  • Cause: One of the four files that the plugin updates does not exist in the tenant project.

  • Fix: Run the Initialize project action of MIT on the project, then install the plugin again.

The new menu entry is at the end of the menu

  • Cause: The menu entry reporting-category does not exist in ui.usr.menu.entries.xml, so the plugin could not place the new entry before it.

  • Fix: Move the entry identity-<id>-search to the place you want in ui.usr.menu.entries.xml.

The delivery fails on the deduplication policy

  • Cause: Another deduplication policy has the same assignment priority on the same object kind.

  • Fix: Change the assignmentPriority value in identity-<id>-deduplicationPolicy.xml, then deliver the configuration again.

Users other than administrators do not see the new entry

  • Cause: The plugin gives access to the administrators only by default.

  • Fix: Add the features identity-<id>-search, -deduplication, -create, -hub, -read, -update and -reactivate to the feature access policy of the other profiles.