azure analysis services - models

Prashantha Hosapattana 26 Reputation points

In azure analysis services, how to view permissions set on models using Java REST api? Any other alternative approaches/suggestions are welcome.

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
360 questions
0 comments No comments
{count} vote

Accepted answer
  1. Saurabh Sharma 17,366 Reputation points Microsoft Employee

    @Prashantha Hosapattana Which all permissions you are looking for ? It is possible through REST API though you can use a PowerShell script like below to get all roles and assigned members if you are looking for the same.

    $ServerName = "asazure://<servername>"  
    $DB = "adventureworks"   
    $MyServer = New-Object Microsoft.AnalysisServices.Server  
    $myDatabase = $myServer.Databases.Item($DB)  
    foreach ( $roles in $myDatabase.Model.Roles) {  
        foreach ( $role in $roles) {  
        Write-Output $role.Name  
        Write-Output "----------------------"  
        foreach ( $member in $roles.Members) {  
             "Member Name: "  + $member.Name   
              Write-Output "`n"            
            Write-Output "`n"  
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful