Closed dushaniw closed 3 years ago
I followed the below steps.
The problem here was the changes in the tenant-conf.json have not been reflected. After the restart, the changes must have got reflected. So the issue that should fix is updating the tenant-conf.json on the fly, without restarting the server.
I followed the below steps.
1. Create "user1" 2. Create "role1" and assigned it to "user1" 3. Map scopes of internal/subscriber to role1 from Admin portal. 4. Create "user2" and assign Internal/subscriber role. 5. Log into Devportal as user2 6. Create App2 7. Log into Devportal as user1. **You will be unable to login.** 8. Restart the server. 9. Now again login into Devportal as user 1. You will be able to successfully logged in. 10. Create App1 11. Log into the same tenant admin portal as an admin 12. Go to the Applications menu and search for "App1" and change ownership from user1 to user2. It will be successful. 13. Go to the Applications menu and search for "App2" and change ownership from user2 to user1. It will be successful.
The problem here was the changes in the tenant-conf.json have not been reflected. After the restart, the changes must have got reflected. So the issue that should fix is updating the tenant-conf.json on the fly, without restarting the server.
Adding to the above, according to [1],
If you get a "Error while updating ownership to
So the error that observed here is expected. Thus confirms that the only thing that should be fixed is the 7th step - Log into Devportal as user1. You will be unable to login..
Will be taken after beta release.
Description:
Cannot change ownership of applications to a user who has a custom role mapped to internal/subscriber role. If we create another user and directly assign "internal/subscriber" role, can change ownership to him.
Steps to reproduce:
Affected Product Version:
API-M 4.0.0 Alpha