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: |
|
2 |
Menu entry |
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: |
|
4 |
Root organization |
The create form uses the organization |
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. |
|
|
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. |
|
|
3 |
FR translation |
French display name of the identity type. Same rule as the English name. |
|
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:
-
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.
-
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 theassignmentPriorityvalue inidentity-<id>-deduplicationPolicy.xmlto 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 |
|---|---|---|
|
|
Yes |
Yes |
|
|
Yes |
Yes |
|
|
Yes |
Yes |
|
|
No |
No |
|
|
No |
No |
|
|
No |
Yes, |
|
|
No |
Yes |
|
|
No |
No |
|
|
No |
Yes |
|
|
No |
Yes |
|
|
No |
No |
|
|
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 |
|---|---|---|
|
|
|
Identity type: attributes, ID generation rule, security organization scope |
|
|
|
Search feature |
|
|
|
Deduplication feature |
|
|
|
Create feature |
|
|
|
Cockpit of the identity |
|
|
|
Read feature: identity, activities and accounts |
|
|
|
Update feature |
|
|
|
Reactivate feature |
|
|
|
Deduplication policy |
Updated files
|
File |
Path |
Description |
|---|---|---|
|
|
|
Adds the seven features to the administrator feature access policy |
|
|
|
Adds the menu entry of the search feature, before |
|
|
|
Adds the labels of the features, in French and English |
|
|
|
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-categorydoes not exist inui.usr.menu.entries.xml, so the plugin could not place the new entry before it. -
Fix: Move the entry
identity-<id>-searchto the place you want inui.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
assignmentPriorityvalue inidentity-<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,-updateand-reactivateto the feature access policy of the other profiles.