-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4911 from AfraHussaindeen/master_attribute-unique…
…ness-validation Add documentation for the attribute uniqueness validation configuration
- Loading branch information
Showing
12 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+150 KB
...rdeo/docs/assets/img/guides/users/configure-attribute-uniqueness-validation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
en/asgardeo/docs/guides/users/attributes/configure-unique-attributes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% include "../../../../../includes/guides/users/attributes/configure-unique-attributes.md" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-83.6 KB
en/identity-server/next/docs/assets/img/guides/users/additional-properties.png
Binary file not shown.
Binary file added
BIN
+171 KB
...next/docs/assets/img/guides/users/configure-attribute-uniqueness-validation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 1 addition & 43 deletions
44
...dentity-server/next/docs/guides/users/attributes/configure-unique-attributes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1 @@ | ||
# Configure unique attributes | ||
|
||
{{product_name}} can be configured to retain the uniqueness of user attributes. This allows you to keep a user attribute value as a unique value within or across all userstores. | ||
|
||
Follow the steps below to configure: | ||
|
||
1. Open the `deployment.toml` file in the `<IS_HOME>/repository/conf` folder and add the following configurations. | ||
|
||
``` toml | ||
[identity_mgt.user_claim_update.uniqueness] | ||
enable = true | ||
scope_within_userstore = false # Optional. | ||
``` | ||
|
||
!!! note | ||
To keep the uniqueness within a userstore, set `scope_within_userstore` as `true`. | ||
|
||
2. Restart the {{product_name}}. | ||
3. On the {{ product_name }} Console, go to **User Attributes & Stores** > **Attributes**. | ||
2. Click **Attributes** to see the list of attributes. | ||
3. Click **Edit** for the attribute you want to update. | ||
4. Go to the **Additional Properties** tab and add the following property to configure the attribute's uniqueness. | ||
|
||
<table> | ||
<thead> | ||
<tr class="header"> | ||
<th>Property Name</th> | ||
<th>Property Value</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr class="odd"> | ||
<td>isUnique</td> | ||
<td>true</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
![additional-properties]({{base_path}}/assets/img/guides/users/additional-properties.png){: width="600" style="display: block; margin: 0; border: 0.3px solid lightgrey;"} | ||
|
||
6. Finally, click `+` button and `Update` to save the additional property. | ||
|
||
You can now verify the functionality by attempting to add users with an existing attribute value or updating the user attribute value of an existing user. | ||
{% include "../../../../../../includes/guides/users/attributes/configure-unique-attributes.md" %} |
31 changes: 31 additions & 0 deletions
31
en/includes/guides/users/attributes/configure-unique-attributes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Configure unique attributes | ||
|
||
User attributes can be configured to be unique. This setting determines the scope within which users must have a unique value for a given attribute. | ||
|
||
Follow the steps below to configure the uniqueness of user attributes: | ||
|
||
{% if product_name == "WSO2 Identity Server" and is_version != "7.0.0" %} | ||
1. Open the `deployment.toml` file in the `<IS_HOME>/repository/conf` folder and add the following configurations. | ||
|
||
```toml | ||
[identity_mgt.user_claim_update.uniqueness] | ||
enable = true | ||
``` | ||
|
||
2. Restart {{product_name}}. | ||
{% endif %} | ||
|
||
3. On the {{ product_name }} Console, go to **User Attributes & Stores** > **Attributes**. | ||
4. Under **Manage Attributes**, click **Attributes** to see the list of attributes. | ||
5. Click the **Edit** icon corresponding to the attribute you want to update. | ||
6. In the **General** tab of the attribute, select one of the following scopes from the **Uniqueness Validation** dropdown. | ||
|
||
- **None**: No validation is applied. Users can have duplicate values for the selected attribute. | ||
- **Within User Store**: Users within the same user store cannot have duplicate values for the selected attribute. However, users in other user stores may have duplicates. | ||
- **Across User Stores**: Attribute values are unique across all user stores preventing duplicates throughout the organization. | ||
|
||
![additional-properties]({{base_path}}/assets/img/guides/users/configure-attribute-uniqueness-validation.png){: width="600" style="display: block; margin: 0; border: 0.3px solid lightgrey;"} | ||
|
||
7. Click **Update** to save the changes. | ||
|
||
You can now verify the functionality by attempting to add users with an existing attribute value or updating the user attribute value of an existing user. |