Check if the current user belongs a specific Windows groupTag(s): Security Powerscript
You can connect to the ActiveDirectory or use some API but an easy way is to use a connection to SQL Server. Send the query :
SELECT is_member('mydomain\g_dept')
0 Current user is not a member of group. 1 Current user is a member of group. NULL Either group or role is not valid.
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com