During development many time we need to write for fetching Active Directory Groups for the current user. Mostly we need this which we need to set permissions of the user according to the Active Directory Groups. Here is a code for fetching all the Active