Thank you @Sima for providing a solution. I'll summarize it here so other users can reference it. Please verify it if you don't mind!
When configuring role claims as described in this document, be sure to Create a user instead of inviting them. With the newly created "Member" type user, you can call the APIs.