Skip to content

Title: Importing Intune Settings Catalog policies fails when tenant does not use Default scope tag, and removing roleScopeTagIds does not resolve the issue #401

Description

@N0SynAck

Description

When attempting to import an Intune Settings Catalog policy into a tenant that does not use the built‑in Default scope tag, the import consistently fails with a 400 BadRequest error from Microsoft Graph.
The tenant uses only a custom scope tag assigned to my admin role.

The error message always includes:

Added a tag which is not allowed by the current role: 0

Even when I manually remove the "roleScopeTagIds" property from the JSON before importing, the same error occurs.
This happens because Microsoft Graph automatically assigns the Default scope tag (ID 0) if no scope tag is provided in the payload.
Since my admin role is not allowed to use the Default tag, the request fails every time.


Steps to Reproduce

  1. Use a tenant where:
    • The Default scope tag is not assigned to the admin role
    • Only a custom scope tag exists (e.g., IntuneScope_MyRole)
  2. Export a Settings Catalog profile.
  3. Try importing it into this tenant.
  4. Optional: Remove "roleScopeTagIds" from the JSON before import.
  5. Observe that the import fails with Added a tag which is not allowed by the current role: 0.

Actual Behavior

  • Importing the Settings Catalog policy fails with a 400 error.
  • Removing "roleScopeTagIds" does not help.
  • Graph forces the "0" scope tag internally, which the current admin role is not permitted to use.
  • The tool provides no way to map or select the correct custom scope tag during import.

Expected Behavior

The import tool should:

  • Detect when the tenant cannot use the Default (0) scope tag
  • Allow selecting or mapping to an existing custom scope tag
  • Or avoid sending/forcing the Default tag when the tenant configuration does not allow it
  • Or provide a clear warning with actionable instructions

Request

Please add support in the tool for:

  • Overriding or mapping scope tags during import
  • Detecting invalid or unavailable scope tags
  • Preventing automatic injection of "0" when the tenant does not permit it

This would allow importing policies into tenants that use custom RBAC scope tags instead of the Default one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions