How to dynamically add/remove role members from SSAS 2016 Tabular model
Typically only the role definitions are part of the project.  The role memberships are different by environment (dev,test,prod), are usually not administered by the model developers, and so are maintained separately.  Then only row-level security is driven from a table in the model.