Forum Discussion
Can I add a role for RLS Using XMLA Endpiont and C#?
Hi Clampazzo
What I would do is to connect to the XMLA endpoint using tablet editor and create the roles using tabler editor. It would be a lot quicker and efficiently create your role and give them as working as expected.
- Clampazzo2 years ago
Resolver I
Thanks for the reply GilbertQ , while that would be easy to do I need to dynamically create these datasets. They will all be DirectQuery but I am creating a new dataset (sometimes multiple) per client workspace. So going in manually later would be difficult to do.
If there's a way to copy a template dataset and then modify it using xmla (while keeping roles) that would be acceptable too.- GilbertQ2 years ago
Super User
Hi Clampazzo
One option might be to script after the database after you have created the roles. You can then use this script to reapply to other app workspaces with the roles as part of the script.
- Clampazzo2 years ago
Resolver I
That sounds like a possibl workaround... is there any documentation on how to do that?