What permission is needed to delete a user from SharePoint


i used command below remove user share point server

     $site = get-spsite 'http://svcssp2010:80'

     $site.rootweb.siteusers.remove('svcsad\test')

if run the command when logged in sharepoint server administrator, performs job without issue.

however, if logged in different user , ran same command, give me error as. user configured "full control" permission site.

####################################################

exception calling "remove" "1" argument(s): "attempted perform unaut
horized operation."
@ line:1 char:31
+ $site.rootweb.siteusers.remove <<<< ('svcsad\test')
    + categoryinfo          : notspecified: (:) [], methodinvocationexception
    + fullyqualifiederrorid : dotnetmethodexception

####################################################

my question is, kind of permission needed delete user in sharepoint server.

hi,

based on research, users have full control of 1 site manage site, not delete users sharepoint server, please refer below link:

sharepoint security , permission system overview

http://www.sharepointblues.com/2010/09/01/sharepoint-security-and-permission-system-overview/

and following forum should right place refer to:

sharepoint 2010

http://social.msdn.microsoft.com/forums/en-us/category/sharepoint2010

best regards,

yan li


yan li

technet community support



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607