Quantcast
Viewing latest article 6
Browse Latest Browse All 10

How do you force an update to a user’s group membership in Windows 7?

Image may be NSFW.
Clik here to view.
Question

I am writing a web application that uses .NET Windows Authentication and relies on a user’s group membership to Authorize them to various areas of the website. Right now I’m on a dev machine that IS NOT part of a domain and is not using AD, instead I’m just using local user groups. In general this is working fine as is.

However, as I test the application I need to add and remove roles in my user account to verify things are working. When I add a role it doesn’t seem to propagate until I log out of Windows and login again.

Is it possible to force an update to Group membership without having to log off?

Image may be NSFW.
Clik here to view.
Answer

This isn’t possible. When you log on, you receive a token reflecting your group membership, among other things. The only way to refresh this token is to log in.


Viewing latest article 6
Browse Latest Browse All 10

Trending Articles