Forum Discussion

FabScone75's avatar
FabScone75
Helper I
1 month ago
Solved

Notification when user is added to workspace

Hello,    I have a workspace which has very sensitive data in it. The workspace owner is concerned about users getting access to this workspace who should not see the data. As Fabric Admin, I have ...
  • FabScone75's avatar
    30 days ago

    In case anyone else has a similar need, what I ended up doing was using a different endpoint and bringing back the Groups. 

     

    https://api.powerbi.com/v1.0/myorg/admin/groups?$filter=id eq 'ABCDEF-6297-4373-87a8-8978f7b7d518' or id eq 'JKLMNO-51c9-4c21-acec-96881d219116' or id eq 'KLMNOP-c4ad-4a00-9c7a-731a66755632'&$expand=users&$top=5000

     

    I also used a different Service Principal which resolved my authorisation issues. 

     

    I added steps to filter out the authorised users and an email to notify the workspace owners in the event that any unauthorised users were found.