Open malithie opened 5 years ago
Fixed introducing a REST API endpoint to support updating a username of a user.
API context URL - https://{host}:{port}/t/{tenant-domain}/api/identity/user/v1.0/update-username path.
Sample Request -
curl -k -v -X PUT -H "Authorization: Basic
The API is designed to work as below upon a username update request.
Disabling the user account at step (2), will terminate all active sessions of the user.
[1] https://docs.wso2.com/display/IS570/Account+Disabling
Note - Once below steps are applied active sessions of the user will be terminated upon following events
<UserSessionMapping>
<Enable>true</Enable>
</UserSessionMapping>
(ii) Apply below configuration within
<EventListener type="org.wso2.carbon.user.core.listener.UserOperationEventListener"
name="org.wso2.carbon.identity.mgt.listener.UserSessionTerminationListener"
orderId="85" enable="true"/>
Apply below configuration within
<Resource context="(.*)/api/identity/user/v1.0/update-username(.*)" secured="true" http-method="PUT">
<Permissions>/permission/admin/manage/identity/usermgt/update</Permissions>
</Resource>
At the moment there is no service available to perform username rename. This is to include that support over the capability of identity anonymization tool.