-
Type: Improvement
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.10
-
Fix Version/s: 11.x
-
Component/s: Automation
-
Tags:
- create a group mygroup1
- create a group mysubgroup1
- create a user myuser1
- add subgroup1 as a member of mygroup1
- add myuser1 as a member of mygroup1
- Try the following curl command:
curl -fsSL -u Administrator:Administrator -H "Content-Type: application/json+nxrequest" -X POST https://nightly.nuxeo.com/nuxeo/site/automation/UserGroup.Suggestion -d '{"params":{"groupRestriction":"mygroup1"},"context":{}}' [ { "firstName": "myuser1", "lastName": "myuser1", "tenantId": null, "groups": [], "company": "", "email": "myuser1@aze.ert", "username": "myuser1", "id": "myuser1", "entity-type": "user", "type": "USER_TYPE", "prefixed_id": "user:myuser1", "displayLabel": "myuser1 myuser1", "displayIcon": true } ]
Only the users are returned.
- this is due to the following part of code:
https://github.com/nuxeo/nuxeo/blob/10.10/nuxeo-features/nuxeo-automation/nuxeo-automation-features/src/main/java/org/nuxeo/ecm/automation/core/operations/users/SuggestUserEntries.java#L151
Once the group restriction is set, the search type is thus ignored.
Expected behavior: to match the usual behavior, if no searchType is specified both users and groups/subgroups should be returned.
- is related to
-
NXP-12463 Add a property to Select2 User Suggestion to suggest user of a given group
- Resolved