|
Home > Archive > Microsoft Content Management Server > May 2005 > export roles, rights and users to an xml-file
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
export roles, rights and users to an xml-file
|
|
| nikolaj 2005-05-25, 7:48 am |
| I need to export the roles, rights-groups and users from an mcms site
to some reasonable format.
>From the mcms faq, I can see that I cannot access the users
programmatically.
I'm currently exprimenting with the option of generating an sdo-file in
site manager, and extracting my information from the xml-files in this
sdo. Is this a good approach or can I do better? It would be nice to
make a tool for this task which does not involve sitemanager and a
decompression-tool..
| |
| Stefan [MSFT] 2005-05-25, 7:48 am |
| Hi Nikolaj,
that can be done using SiteDeployment API:
Dim pCmsDeployExport
Dim shell
Dim pExportOptions
Set pCmsUserGroupBackupRestore =
CreateObject("CmsDeployServer.CmsUserGroupBackupRestore.1")
pCmsUserGroupBackupRestore.AuthenticateAsCurrentUser()
If ( Err.Number <> 0 ) Then
Call MsgBox(Err.Description, vbCritical, "Backup/Restore PROBLEM")
Set pCmsUserGroupBackupRestore = Nothing
else
strPackageFileName = "d:\export\export-users.sdo"
strReportUrl = pCmsUserGroupBackupRestore.Backup("strPackageFileName")
' Display the report in the Web browser.
Set shell = WScript.CreateObject("WScript.Shell")
shell.Run "http://localhost" & strReportUrl, 7
WScript.Echo "Export complete."
end if
Then import the SDO on the destination server using SiteManager or site
deployment script.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"nikolaj" <nik@email.dk> wrote in message
news:1117015558.738715.318980@g43g2000cwa.googlegroups.com...
>I need to export the roles, rights-groups and users from an mcms site
> to some reasonable format.
> programmatically.
> I'm currently exprimenting with the option of generating an sdo-file in
> site manager, and extracting my information from the xml-files in this
> sdo. Is this a good approach or can I do better? It would be nice to
> make a tool for this task which does not involve sitemanager and a
> decompression-tool..
>
| |
| nikolaj 2005-05-25, 7:48 am |
| Thanks.
Where can I get the Site deployment API?
| |
| Stefan [MSFT] 2005-05-25, 5:59 pm |
| Hi Nikolaj,
that API is part of the product.
Check the reference section of the MCMS documentation.
It contains a complete description including sample scripts.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
----------------------
"nikolaj" <nik@email.dk> wrote in message
news:1117024094.036361.293240@g44g2000cwa.googlegroups.com...
> Thanks.
>
> Where can I get the Site deployment API?
>
|
|
|
|
|