Forum Discussion

BalfourBen's avatar
BalfourBen
Icon for Advocate I rankAdvocate I
1 year ago
Solved

Setting of Membership in Semantic Models using notebook

Hi All,   I am trying to script using a notebook to add memberships to roles in a semantic model, however when I use the objectID of the cloud security group from Entra it throws the below error, i...
  • Poojara_D12's avatar
    Poojara_D12
    1 year ago

    BalfourBen 

    To pass an Azure AD security group correctly as a role member in your semantic model, you typically need to provide more structured information than just the group’s ObjectID. Many SDKs, including the one you're using (sem-py-labs), are designed to accept simple string inputs like user email addresses, which work fine for individual users but fail for security groups because the system cannot determine the principal type. To add a group, the expected format is often a structured object that explicitly defines both the member’s identity and type. For example, some APIs and tools require the group to be identified using a prefix like aad://<group-object-id> and specify the memberType as "Group". This helps the service recognize that the ObjectID belongs to a group and not a user. However, if your current SDK doesn’t support structured inputs, you may need to switch to a tool that supports the Tabular Object Model (TOM) or XMLA scripting, such as Tabular Editor, PowerShell, or direct XMLA requests. These methods allow more control and let you add role members with detailed metadata, ensuring that Azure AD groups are properly recognized and accepted.