DX NetOps

 View Only
  • 1.  Is there a way to export user accounts from CAPC 2.8 to CAPC 3.0?

    Posted Jan 30, 2017 09:50 AM

    Hi,

     

    I migrated to a new set of servers from CAPC 2.8 to CAPC 3.0.  Is there a way to export user accounts from one system and import them into the other?  



  • 2.  Re: Is there a way to export user accounts from CAPC 2.8 to CAPC 3.0?
    Best Answer

    Broadcom Employee
    Posted Jan 30, 2017 12:32 PM

    Hi Scott:

    Here is how you would get a list of users:

    http://<pc>:8181/pc/center/webservice/users/en-US


    You will likely have to massage that data to get it into your other system. In general here is how you can do it:

    Fetch a role for the user
    1. Issue a HTTP GET to http://<pchost>:8181/pc/center/webservice/roles/en-US
    2. Note a role name of an available role. Call it “userRoleName”.
    Create the user
    1. Issue a HTTP POST to http://<pchost>:8181/pc/center/webservice/users/role/roleName/{userRoleName} using the following content:
    - Replace {roleName} in the URL with the value from the previous step.
    - Replace {newUserName} with a new user name.
    Headers:
    Content-Type: application/xml
    Body:
    <user>
    <name>{newUserName}</name>
    <description>My new user</description>
    <enabled>true</enabled>
    <removable>false</removable>
    <timezone>UTC</timezone>
    <authenticationType>PRODUCT</authenticationType>
    <culture>en-US</culture>
    <customGroups>false</customGroups>
    <suppressViews>false</suppressViews>
    </user>


    Hope this helps:
    Joe



  • 3.  Re: Is there a way to export user accounts from CAPC 2.8 to CAPC 3.0?

    Broadcom Employee
    Posted Feb 01, 2017 10:26 AM

    Hi Scott:

     

    Did this work out for you?  If so let us know and we will mark the thread is resolved in the communities.  If this is still an issue certainly provide further details

     

    Thanks,

    Joe



  • 4.  Re: Is there a way to export user accounts from CAPC 2.8 to CAPC 3.0?

    Posted Feb 01, 2017 10:39 AM

    Hi Joe,

     

    On my list of things to do later this week – I’ll let you know.  Thanks!