Tagged with Administrators

How to: Check if current user is member of ‘domain admins’

How to: Check if current user is member of ‘domain admins’

The scenario Sometimes in business applications it’s interesting checking if current user is member of the ‘domain administrators’ role. For example I am used to checking if current user has administrative privileges in order to showing some advanced configuration options (changing the application’s connection string, or allow creating new users). IsInRole To acomplish this we … Continue reading