Skip to content

[QUESTION] Command fab import - import: [FeatureNotAvailable] Access is forbidden. You do not have permission to access this resource #288

Description

@chmsto

Question

Hi,

What permissions are required for the service principal to use the fab import command to create and modify items, please?

Thanks

Context

Hi,
Using the following fab import command:
fab import "WF_SB_FS_DEV.Workspace/VL_Global.VariableLibrary" -i "$TMP_DIR/VL_Global.VariableLibrary" -f

I encounter the following error:
x import: [FeatureNotAvailable] Access is forbidden. You do not have permission to access this resource

I am experiencing the same issue with other item types (Notebook).
I do not understand why, but I get this error when creating a new item. However, when modifying an item that already exists in the target workspace, the fab import command successfully applies the changes.

I am using a service principal that is an Admin on the target workspace. In the Tenant Settings, the SPN is allowed for the following options:

  • Users can create Fabric items
  • Service principals can call Fabric public APIs
  • Service principals can access read-only admin APIs
  • Service principals can access admin APIs used for updates
  • And in the API permissions, it has Item.ReadWrite.All.

Could you please tell me what is missing from the service principal to allow it to modify items?

Thanks

fabric-cli version (if relevant)

1.7.0

Operating System (if relevant)

Linux

CLI Mode (if relevant)

Command line mode

Have you checked the documentation?

  • I have searched existing GitHub issues
  • I have reviewed the fabric-cli documentation

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions