user suggestion - groupRestriction

Im using nuxeo-user-suggestion , i want to know how can use the groupRestriction for filter the search by a group or a permission

0 votes

2 answers

1385 views

ANSWER



ok, I already have it, here I leave the code, if someone finds it useful

<nuxeo-user-suggestion role="widget" value="" label="Revisor de carta de consentimiento informado" params={"groupRestriction":"Revisores"} search-type="USER_TYPE" min-chars="0" required="true" ></nuxeo-user-suggestion>

my group name is Revisores

0 votes



Hello,

You can use the operation attribute of the nuxeo-user-suggestion element: just use an automation chain with the UserGroup.Suggestion automation operation to filter the results.

Regards

0 votes



where can i find some example code?
07/16/2020