Re: Error when removing permissions from a list
From: David McKenzie (DavidMcKenzie_at_bonbon.net)
Date: 12/02/04
- Next message: David McKenzie: "Re: New Portal Creation Problem"
- Previous message: Shem: "RE: Sharepoint Services & IIS * C#"
- In reply to: ori: "Error when removing permissions from a list"
- Next in thread: ORi: "Re: Error when removing permissions from a list"
- Reply: ORi: "Re: Error when removing permissions from a list"
- Messages sorted by: [ date ] [ thread ]
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
>
- Next message: David McKenzie: "Re: New Portal Creation Problem"
- Previous message: Shem: "RE: Sharepoint Services & IIS * C#"
- In reply to: ori: "Error when removing permissions from a list"
- Next in thread: ORi: "Re: Error when removing permissions from a list"
- Reply: ORi: "Re: Error when removing permissions from a list"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|