-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
2.5.2
-
1
-
Severity 3 - Minor
-
Symptoms
When adding a new user to a directory with an LDAP connector, if you specify the user's active flag to false, it will still be created with active flag true. After adding the user, the flag can be turned off without issue.
This affects the Crowd Admin Console user interface, and also the REST API.
Steps to Reproduce
In the admin console, add a user and set the active flag to "false". After the user is added, the active flag is set to true.
To replicate in REST:
curl -i -u test:test --data '{ "name" : "my_username", "first-name" : "My", "last-name" : "Username", "display-name" : "My Username", "email" : "user@example.test", "password" : { "value" : "my_password" }, "active" : false }' http://localhost:8095/crowd/rest/usermanagement/1/user --header 'Content-Type: application/json' --header 'Accept: application/json'
When this command is run, the user is created with the active flag set to "true" despite "false" being the value in the request payload.
This issue does not affect Crowd internal directories.
Workaround
Manually set the flag after the create command, or send a REST command to update the flag.
- relates to
-
CWD-2923 Creating new users using Crowd REST ignores <attributes> element
- Closed