Hi there,
Thank you for reaching out to us!
We are trying to reply to older posts and provide some information, in case others encounter the same issue and find this useful.
I was able to find the following post where this issue has been addressed and should prove useful with getting the issue resolved : Organization Invitations with Roles - #11 by rueben.tiow
In case after applying the issue, you encounter that the User Consent Screen shows up weirdly, which was a behaviour described by other users after going through the steps outlined in the above topic, I recommend looking over this documentation : User Consent and Third-Party Applications.
Hope this helped!
Gerald