Change the owner of the subscription or email of the developer

NICOLE LEUNG (BA-ISD-OOCLL/HKG) 151 Reputation points
2021-06-07T08:05:56.64+00:00

Hello.
May I ask if there any way to change the owner of the subscription or email of the developer so as to transfer the subscription to another account/email on the API Portal?

For example, I want to change the Owner "Administrator" to user B with another email. How could I do so without creating a new subscription?
102900-image.png

And what is the user want to change the email registered? Currently, the user can only reset the pw and name on the API portal. Is there any way that could change the email ?

Thank you.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,453 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2021-06-08T01:43:04.2+00:00

    @NICOLE LEUNG (BA-ISD-OOCLL/HKG) As of now this is not possible from azure portal to update the Owner for a particular subscription and update the email ID of the existing user.

    To update the owner of the subscription you need to leverage the Subscription Update REST API. This API needs the sid and you can get the sid field from Subscription List API. The name filed in subscription list API can be used as sid for Update REST API.
    To pass the ownerId in request body you can get it using User - List By Service API.

    Request Body to update the owner details using Subscription Update REST API.

    {  
       "properties":{  
          "ownerId":"/subscriptions/{subscriptionID}/resourceGroups/{resourcegroup}/providers/Microsoft.ApiManagement/service/{APIM Instance name}/users/{your user}"  
       }  
    }  
    

    Similarly, to update the email ID you can leverage the User - Update REST API

    Hope this help you. Feel free to get back to me if you need any assistance.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sithu Kyaw 1 Reputation point
    2022-07-27T07:59:11.31+00:00

    You can now update the email under "notification templates" of APIM now.

    ![225201-image.png]1

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.