Enumerating Sharepoint User Profiles – Access Denied Exception
Posted by Ramprasad Navaneethakrishnan on January 15, 2009
While enumerating Sharepoint user profiles like this
foreach (Microsoft.Office.Server.UserProfiles.UserProfile userProfile in profileManager)
if the user don’t have administrator privileges, then the following exception will occur.
“System.UnAuthorizedException : Access Denied – Only Administrator may enumerate through all user profiles”.
To resolve this, proceed with the following steps..
1. Go to SSP – > Personalization services permissions

2. Modify Permissions for NT AUTHORITY\Authenticated Users

3. Select the option “User Profile Manager” and Save.

Now you are ready to enumerate the Sharepoint User Profiles…
Possibly related posts: (automatically generated)
This entry was posted on January 15, 2009 at 2:59 PM and is filed under MOSS 2007. Tagged: Access Denied, Enumeration user profiles, Manage User Profiles, Microsoft Office Sharepoint Server 2007, Microsoft.Office.Server.UserProfiles.UserProfile, MOSS, MOSS 2007, Only Administrator may enumerate through all user profiles, Personalization services permissions, Sharepoint 2007, SSP, System.UnAuthorizedException, User Profile, UserProfileManager. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Acceso denegado al hacer un foreach al UserProfiles de SharePoint - Manolo Herrera said
[...] http://dotnetdreamer.com/2009/01/15/enumerating-sharepoint-user-profiles-access-denied-exception/ [...]
Links (4/2/2009) « Steve Pietrek - Everything SharePoint and Office said
[...] Enumerating SharePoint User Profiles – Access Denied Exception [...]
Lester said
But that would allow anyone not only enumerate but modify any profile.
Regards,
Lester