Re: Error when removing permissions from a list

From: David McKenzie (DavidMcKenzie_at_bonbon.net)
Date: 12/02/04


Date: Thu, 2 Dec 2004 08:31:43 -0600

The OM will not remove the last Administrator.
Therefore you will need to explicitly remove all users you do not want, save
one Administrator, add your new users and remove that one holdover
administrator once you have one to take its place.
"ori" <ori@bbs-ce.uab.es> wrote in message
news:1101986636.415992.95860@z14g2000cwz.googlegroups.com...
> -- Sorry if this post is duplicated but I got an error the first time I
> sent it --
>
> Hi,
>
> >From a couple of weeks, I've been trying to create a component which
> will copy lists between sharepoint sites. I've already posted a couple
> of threads regarding some problems I've faced when trying to reach this
> and asking for some advice on which approach was better with no success
> because I didn't get any response at all. Far from abandoning, here I
> come with a new problem I've found:
>
> The situation up to this point is that I am able to successfully move a
> sharepoint list between sites (even in different servers) with the
> combination of a web part in the source server and a web service in the
> target one.
>
> What I do, is export at first the template and then pass the list's
> contents (since I can only create a template up to 10mb and it wasn't
> enough for the document libraries). Now, after all this, I get the list
> succesfully copied to the target server but I still need to copy the
> list's permissions (since they are not created with the template). To
> do this, I'm trying to remove the current permissions created by
> default when importing the template but I get the following exception
> on the target server:
>
> "Cannot complete this action. Please try again."
>
> What I do is after creating the list, I execute the following:
>
> newList.Permissions.Remove(0);
>
> Just to try to remove a permission, but it doesn't work. Does anybody
> know why this can be happening ? I don't know what I'm doing wrong. Any
> help will be appreciated, thx in advance !
>
> ori
>



Relevant Pages

  • Re: Giving Exchange administration privileges programmatically
    ... it seems that view permission is in fact made of this set of permissions: ... When you assign a user or a group Exchange View Only Administrator ... MsExchRecipientsPolicy container, the Address Lists container, Addressing, ...
    (microsoft.public.exchange.development)
  • Lyris ListManager 8.95: Add arbitrary administrator to arbitrary list
    ... Advisory: Lyris ListManager 8.95: Add arbitrary ... administrator to arbitrary list ... I'm sure there's SQL injection possibilities here as ... and the value of your mailing lists. ...
    (Bugtraq)
  • Re: Simple Web Parts question
    ... I am having a similar problem, although I am the administrator. ... I created a site based on the team site, customised it (add a few lists and ... Any new site that I create using that template the users cannot access the ... gallery, 0 in virtual server gallery, 8 in Online Gallery (MSNBC Business ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Directory Service Access
    ... service ticket is different than that on the target server. ... is due to identically named machine accounts in the target realm ... administrator. ...
    (microsoft.public.windows.server.migration)
  • RE: Google lists vulnerable sites.
    ... revealed a simple list of sites running the Internet Information Server ... > Subject: Google lists vulnerable sites. ... > name of a commonnly protected directory (I will use admin in this ... > administrator and not the average web surfer would have access to. ...
    (Vuln-Dev)