I am trying to write a new NSS module.
I am facing an issue. In my nss I am fetching data from a remote API. The problem is, if i want to list all the groups of a user, i have no way to do that.

So for example, I want to list all the groups of a user which is present in the remote service.

I am not able to do so, it seems to achieve this i will have to implement a function called nss_XXX_initigroups_dyn. But the problem is i did this, but was not able to retrieve the group info. As a matter of fact, this fuction doesnt even get called when i want to list all groups of a user.

Please some one help me urgently.