cancel
Showing results for 
Search instead for 
Did you mean: 

user suggestion - groupRestriction

__10
Champ on-the-rise
Champ on-the-rise

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

1 ACCEPTED ANSWER

__10
Champ on-the-rise
Champ on-the-rise

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

View answer in original post

3 REPLIES 3

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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

where can i find some example code?

__10
Champ on-the-rise
Champ on-the-rise

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