Changing the group membership of a user in bonitasoft portal doesn't show effect in the REST API calls

1
0
-1

Hey,
I was trying to change the group membership of the user using the administrator role on the portal, and i changed the role of one of the user and the tasks showing up for him changed accordingly on the portal under the tasks tab, but when i do REST API calls,I am receiving tasks of the previous group of the user only, can you please help me out with this bug?

Comments

Submitted by antoine.mottier on Wed, 11/27/2019 - 10:51

I assume you have something like:

  • A task "Task1" that is mapped to an actor "Actor1" and "Actor1" is associated with membership "Group1-Role1"
  • At the beginning you user "walter.bates" has membership "Group2-Role2" and so cannot perform the task
  • Once you add a "Group1-Role1" membership to "walter.bates" it can actually do the "Task1"

Is my understanding so far correct?

Can you share the REST API you are performing (URL, payload...)?

Thanks

Submitted by abizer.lokhandw... on Wed, 12/04/2019 - 16:06

Yes, that's what we were trying to do. We were using the REST API to get humantask for a particular userId, but it wouldn't work as the change in membership did not come into effect, not sure why.

Submitted by antoine.mottier on Wed, 12/04/2019 - 16:13

Can you share the REST API you are performing (URL, payload...)?

Submitted by antoine.mottier on Wed, 12/04/2019 - 16:13

Can you share the REST API you are performing (URL, payload...)? Thanks.

Submitted by abizer.lokhandw... on Wed, 12/04/2019 - 16:18
Submitted by antoine.mottier on Thu, 12/19/2019 - 18:45

After updating the user membership did you log out and log in again? This is required to refresh the list of tasks visible to the user when membership is updated.

Also in your URL I think you should use double curly brace (http://localhost:8080/bonita/API/bpm/humanTask?f=user_id={{userId}}).

No answers yet.
Notifications