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?
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
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.
Can you share the REST API you are performing (URL, payload…)?
Can you share the REST API you are performing (URL, payload…)? Thanks.
This is the exact REST API
http://localhost:8080/bonita/API/bpm/humanTask?f=user_id={userId}
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}}).