Forum Discussion

nupur's avatar
nupur
Regular Visitor
4 years ago
Solved

PowerBI API

Hello,

 

I am trying to use powerBi API to use AD group with mailbox that will be used for admin access PowerBI environment. As of today, it is not possible to grant access to an AD group without a mail address. This makes administration complicated, as the individual people need to be removed every time someone on the team leaves/starts. I am using this powershell script to get the result but its not working, looking for some help.

 

 

$Body1 = @{
identifier=“xyz”
groupUserAccessRight=“Admin”
principalType=“Group”
}

$BodyJSON1=$Body1 | ConvertTo-Json
Invoke-PowerBIRestMethod -Method post -Url “groups/abc/users” -Body $BodyJSON1 -debug

2 Replies