export roles, rights and users to an xml-file
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > export roles, rights and users to an xml-file




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    export roles, rights and users to an xml-file  
nikolaj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-05 12:48 PM

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..






[ Post a follow-up to this message ]



    Re: export roles, rights and users to an xml-file  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-05 12:48 PM

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..
>







[ Post a follow-up to this message ]



    Re: export roles, rights and users to an xml-file  
nikolaj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-05 12:48 PM

Thanks.

Where can I get the Site deployment API?






[ Post a follow-up to this message ]



    Re: export roles, rights and users to an xml-file  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-25-05 10: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?
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:06 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register