question

NICOLELEUNGBAISDOOCLLHKG-4873 avatar image
0 Votes"
NICOLELEUNGBAISDOOCLLHKG-4873 asked sithukyaw answered

Change the owner of the subscription or email of the developer

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
image.png (40.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@NICOLELEUNGBAISDOOCLLHKG-4873 Thank you for the question. We will review and update at the earliest.

0 Votes 0 ·
MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered

@NICOLELEUNGBAISDOOCLLHKG-4873 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sithukyaw avatar image
0 Votes"
sithukyaw answered

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

![225201-image.png][1]



image.png (43.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.