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
- 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)
- Export a Settings Catalog profile.
- Try importing it into this tenant.
- Optional: Remove
"roleScopeTagIds" from the JSON before import.
- 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.
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 BadRequesterror from Microsoft Graph.The tenant uses only a custom scope tag assigned to my admin role.
The error message always includes:
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
IntuneScope_MyRole)"roleScopeTagIds"from the JSON before import.Added a tag which is not allowed by the current role: 0.Actual Behavior
"roleScopeTagIds"does not help."0"scope tag internally, which the current admin role is not permitted to use.Expected Behavior
The import tool should:
Request
Please add support in the tool for:
"0"when the tenant does not permit itThis would allow importing policies into tenants that use custom RBAC scope tags instead of the Default one.