Error with UserPrincipal.GetAuthorizationGroups() method

前端 未结 3 1451
半阙折子戏
半阙折子戏 2021-02-08 21:42

I am having an issue using the GetAuthorizationGroups method of the UserPrincipal class in a web application.

Using the following code, I am receiving \"While trying to

3条回答
  •  不要未来只要你来
    2021-02-08 22:24

    Have your administrator look at the AD account for the user that returns the error code 5. I ran into that today and it turned out to be a setting on that user's account. There is a checkbox to inherit security settings that was not checked (all the other users were checked). This solved it for me.

提交回复
热议问题