Forum Discussion

KimTutein's avatar
KimTutein
Advocate III
10 months ago
Solved

Set build permission on dataset/semantic model to app using REST API

Hi Community   Does anyone know if it is possible to set build permission for an app on a dataset using REST API. It is possible to set this permission for a user or a group using: Datasets - Put D...
  • v-hashadapu's avatar
    v-hashadapu
    10 months ago

    Hi KimTutein , Thank you for reaching out to the Microsoft Fabric Community Forum.

     

    You are correct, an Azure AD app registration is a service principal and service principals are valid principals in the Put Dataset User API. In theory you should be able to grant ReadExplore (Build) that way.

    The issue is that, in practice, assigning Build to a service principal through the REST API doesn’t actually work consistently today, even though the UI supports it. This is why you’re able to add Build permission for your app in the GUI, but the same call through the API won’t succeed. It’s a limitation in the current implementation, not something you’re doing wrong.