omg…so quick response…kudos to you sir.
I just copied the code from the api link and was wondering if I shall make the authorization to true…
https://www.wix.com/velo/reference/wix-users-backend/roles-obj/assignrole
I’ll try with this change and will update.