can anybody tell that how do we get group SID.
we have user SID but how can i know to which group that SID belongs

we can get Group SID by access token but this token we can get by current running process

so my question is : is there any method in c++ by which we can directly get groups SID's

Which operating system are you on ?

the SID is only used by Windows

in unix there is same uid

i found the solution

there is NET API Network Management Functions in platform SDK which provide all information of user as well as group

thanks tux4life for ur comment