API Connect

 View Only
  • 1.  Migrate users from LUR to OIDC - APIC v10

    Posted Wed January 18, 2023 03:47 PM
    Hi All,

    We need to migrate all users from LUR to OIDC user registry in APIC v10. What is the best approach? Are there any scripts that can be utilized to accomplish this?

    Thanks,
    Mohammad Sarwar

    ------------------------------
    Sarwar Mohammad
    Mahwah NJ
    ------------------------------


  • 2.  RE: Migrate users from LUR to OIDC - APIC v10

    User Group Leader
    Posted Wed January 25, 2023 11:20 AM
    Hi Sarwar, 

    Just wanted to follow up on this thread - I brought it up to our team. the team is working on making this a possibility but we aren't sure when it could be used. I will circle back with the team and see what we can do in the meantime.

    ------------------------------
    Gabriel Marte Blanco
    Austin TX
    ------------------------------



  • 3.  RE: Migrate users from LUR to OIDC - APIC v10

    Posted Mon January 30, 2023 04:48 PM

    Hi Sarwar,

    There is no out of the box way to do this today. You could use existing REST APIs to do it (and package all those calls in a script if needed).

    For provider users:
    - Create a new user for every old user but in the OIDC registry (POST /users).
    - Add the new user as a member at the required scope (org/catalog/space) with the same roles as that of the old user/member (POST /members).
    - If the old user happens to be an owner of an org/catalog/space, then you will first have to add a member with no role for the new user and then do a transfer ownership from the old user to the new user. (POST /transfer-owner)
    - Delete the old user. (DELETE /users).

    If developer portal users are involved, additional steps are needed since user emails are required to be unique across all registries used for the catalog.

    So instead of the above steps, you might have to:
    - Create a temporary user in the OIDC registry (POST /users)
    - Make him the owner of the consumer orgs owned by LUR users (POST /transfer-owner)
    - Delete the old members/users (from both APIM and Portal admin page if needed) (DELETE /users, DELETE /members for APIM).
    - Create a new OIDC user for every old LUR user as before (POST /users)
    - Reassign orgs and memberships to the new users (for owners - transfer ownership from temp user to the new user, for developers (create/update memberships).

    Hope that helps. 



    ------------------------------
    Nisha Narayanan
    ------------------------------