I'm thinking this is more of a bug than a question.
I'm developing Power BI dashboards sourced from Azure Analysis Services and have a user where their email and user principal name have an apostrophe in it (lets just say it's blah.O'Blah@mathieu.company .co.nz) and until about a couple of weeks ago this user has had no problems viewing the Power BI dashboards but is now getting the [Cannot Connect to Data Model] error
This user is actually part of a group that has membership to a cube role (actually more than one) but I've been trying to add this user individually and I'm hitting errors with everything I've tried
I can [Add Member] from SSMS/Roles and search for them, find them but when I click add I get a "This user was not found in your organisation azure active directory" error
If I add the user email manually I get the same error
If I use an XMLA script I get the same error
Also access via the group they're in gives the same error
But if I use double apostrophe (as in Blah.O''Blah@mathieu.company .co.nz) then then no error and it would seem that they've been added to the cube and hence data model but then they still get the [Cannot Connect to Data Model] error from Power BI
I'm thinking something has recently changed in how they get authenticated and now the apostrophe is causing issues
I created a Power BI report that just shows their user name and user principal name not connected to a cube and this just shows the one apostrophe scenario
So from the cube side there is an issue with the one apostrophe and from the power bi and azure side there isn't and this is causing issues