Changing the Provider of an Api¶
If required, you can transfer the ownership of your api to another user in your organization. Thereby, when transferring ownership, the new provider/owner will have the required permission to delete or edit the respective api.
For example, let's consider that Chris and Kim are in the same organization and that Kim owns testApi and he wants to transfer the ownership of testApi to Chris.
Follow the instructions below to change the ownership of an application:
- Start the WSO2 API-M Server.
-
If the users do not exist in the system, create them.
-
Sign in to the WSO2 API-M Management Console.
https://<APIM-hostname>:9443/carbon
-
Create two users named Chris and Kim with the
Internal/creator
role. Refer Create New Users for more information.
-
-
We can check the current provider by logging to the publisher portal and by looking at the api tiles.
-
Sign in to the WSO2 API-M Publisher Portal using the api owner's (Kim's) user credentials.
https://<APIM-hostname>:9443/publisher
-
If the apis does not exist, create it in the Publisher Portal.
-
-
Change the owner/provider of the api.
-
Sign in to the WSO2 API-M Admin Portal using admin credentials.
https://<APIM-hostname>:9443/admin
-
Click Change Api Provider under Settings. This shows you the list of apis together with the respective providers.
-
Update the Provider field with the new provider's username (Chris).
Troubleshooting
If you get a "
Not a valid user
" error (e.g., Chris123 not is a valid user) in the Admin Portal, make sure to request that specific user (e.g., Kim) by checking the spellings.The apis page shows the new ownership.
Now, when Kim or Chris signs in to the publisher Portal, the provider name is changed to Chris.
-