Best way to get all groups a user is member from

 Hi Community,

For a task report, I would like to automatically pop-up the task assigned for the user, by checking all the tasks that are assigned to a group where the user is member of. I though there might be a function that does that already, but I didn't find it.

Before I go to the implementation of something, I would like to ask if you are aware of any function that could make this more efficient.

It should consider

1) One Application with many groups.

2) loggedin user might be part of none, one or many groups

2) The number of groups and tasks might change later (so avoid hardcoded is isusermemberofgroup(cons!GROUP))

Thanks for sharing your thoughts!

 

 

 

 

  Discussion posts and replies are publicly visible

Parents Reply Children