Re: Adding domain users to a site document library from command-li
- From: Indigenous <Indigenous@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 13 Jun 2006 10:02:02 -0700
Salva
You asked for some sample code to add users to the group.
The following ldifde script will do the job much more simply than dot net
you'll need to change the dn of the group to reflect the location of the
group in your own AD, likewise for the users.
Create a file with the following in it (not the dash on the last line is
important). call the file addmembers.ldf.
There's tonnes of documentation on the web on ldifde.
dn: CN=Test Group 1,OU=myou, DC=DEV,DC=test,DC=COM
changetype: modify
replace: member
member: CN=user1,OU=myou,DC=DEV,DC=test,DC=COM
member: CN=user2,OU=myouDC=DEV,DC=test,DC=COM
-
use this command line to run it (not the location of the ldifde program may
vary - if it's not on your windopws server already, you can download it free
form microsoft)
LDIFDE.exe -b adminaccount DC=DEV,DC=test,DC=COM * -i -f "AddMembers.ldf" -j
"logs\ADGroupsImport_AddMembers"
"salva.gomez@xxxxxxxxx" wrote:
Hi Indigenous.
can you send me this example to my mail address?
Thanks a lot
Salva.
Indigenous wrote:
You could just add an NT security group account to the library then you
problem is simply one adding users to an NT group (outside of sharepoint). I
suspect there are plenty of examples of how to script that on the web. The
only example i have is using .NET and the DirectoryServices assembly.
"salva.gomez@xxxxxxxxx" wrote:
Hi
i'm looking for an script or something to add users to document
libraries stored in sites.
Anyone know how to do it? I have one script made for SPS2001 to do
this, but for SPS2003 i dont know if it can be possible ( i hope it :D
)
I want to use it to add permissions in a batch process (quickly than
GUI...)
Thanks
Salva.
- Follow-Ups:
- Re: Adding domain users to a site document library from command-li
- From: salva . gomez
- Re: Adding domain users to a site document library from command-li
- References:
- Adding domain users to a site document library from command-line or script
- From: salva . gomez
- Re: Adding domain users to a site document library from command-line o
- From: salva . gomez
- Adding domain users to a site document library from command-line or script
- Prev by Date: Re: Users on second domain prompted for login
- Next by Date: Changing onet.xml
- Previous by thread: Re: Adding domain users to a site document library from command-line o
- Next by thread: Re: Adding domain users to a site document library from command-li
- Index(es):
Relevant Pages
|