How to find if the current user belongs to specific group

Sometimes, we may need to find out whether the currently logged in user belongs to a specific AD Group or SharePoint Group. This can be achieved as below.

To find out if the current user is a member of AD Group:



To find out if the current user is a member of SharePoint Group:

1 comment:

Unknown said...

Excellent !!!!!!!. Very Helpful