Admin Rule Got Changed Accidently

If the role of admin user got changed accidently, and it has no other users who have the admin previlege, how to reassign the role.

Issue: The admin user role got changed accidentally, and it has no other users who have the admin privilege,

Resolution:
If this happens, the role cannot be reassigned from the user's end. Therefore, the [dbo].[UserRoles] table must be checked in the database.

Ensure that the role Administrator, Tenant Administrator, Allow to be Folder Administrator, Allow to be Automation User are all assigned to the admin user.

If not, create related records in the table. Then try to sign out and log back into Orchestrator.