Forum Discussion
PowerBi RLS with embedded analytics: spaces in username parameter
- 9 years ago
Hello,
Spaces in the username are not allowed. As a workaround you can replace the spaces in the username for example with underscore ('_') and adjust the role DAX filter accordingly. You can also create a calculated column in the model that contains usernames without spaces.
Best regards
Thanks for reporting that. I can reproduce the same issue when the EffectiveUsername has any space, eg "Effective Username".
{
"accessLevel": "View",
"identities": [
{
"username": "EffectiveUsername",
"roles": [ "Role1", "Role2" ],
"datasets": [ "fe0a1aeb-f6a4-4b27-a2d3-b5df3bb28bdc" ]
}
]
}
Do you have any comments on this? Is this a limitation or issue?
- yuryb9 years ago
Power BI Team
Hello,
Spaces in the username are not allowed. As a workaround you can replace the spaces in the username for example with underscore ('_') and adjust the role DAX filter accordingly. You can also create a calculated column in the model that contains usernames without spaces.
Best regards
- agka9 years agoRegular Visitor
Thanks to everybody! that's helps!