Merge "Add removeManagedProfile API: Checks if the given user is a managed profile and deletes it" into main