Retrieving Users - Access Denied
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Retrieving Users - Access Denied

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
chrisp
Guest





Posted: Fri Mar 11, 2005 3:22 am    Post subject: Retrieving Users - Access Denied Reply with quote

Hello All,

In my Doc lib Event handler, I am trying to retrieve the users
collection from an SPRole object. I have impersonated the adminsitrator
user inside the function but I keep getting an access denied exception
when I call SPRole.Users Following is my code:

objWeb = listEvent.Site.OpenWeb
objSPRole = objWeb.Roles(RoleName)
For each objSPUser in objSPRole.Users 'Unauthorized Exception occurs
here.
Next

Any ideas or suggestions would be really helpful.

Thanks,
chris
Back to top
furrybaer



Joined: 31 Mar 2006
Posts: 1

Posted: Fri Mar 31, 2006 10:11 pm    Post subject: Access is Denied... Reply with quote

Did you ever get a fix for this? I am having a similar problem.

Thanks
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB