mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 00:06:06 +03:00
[GH-ISSUE #5410] [Bug]: Encrypted OMA-URI values in Intune device configuration policies are not handled #2610
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#2610
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexrsagen on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/5410
Required confirmations before submitting
Issue Description
CIPP currently does not seem to handle encrypted OMA setting values.
These are used by Intune with the "Custom" policy template, which allows you to manually configure policies using OMA-URI.
Using the "Custom" policy template is necessary for new features, features that aren't yet included in a more specific policy template or settings catalog, or sometimes even for fully supported features such as Assigned Access or Local group membership, where the Intune UI is either simply wrong or doesn't allow you to provide all values supported by the setting.
When you access a policy containing an encrypted OMA setting value, you will get the value
PGEvPg==(base64 encoded value of<a/>). This is just a placeholder value. We need to get the real value via the Graph API using thesecretReferenceValueIdproperty instead, which CIPP currently does not do.Steps to reproduce
./Device/Vendor/MSFT/Policy/Config/LocalUsersAndGroups/ConfigureEnvironment Type
Sponsored (paying) user
Front End Version
v10.0.9
Back End Version
v10.0.9
Relevant Logs / Stack Trace
Failed added policy CIPP-LocalUsersAndGroups-TestPolicy. Error:
@github-actions[bot] commented on GitHub (Feb 20, 2026):
Thank you for reporting a potential bug. If you would like to work on this bug, please comment:
Thank you for helping us maintain the project!
@alexrsagen commented on GitHub (Feb 20, 2026):
Here's an example of how to use the mentioned Graph API to extract the encrypted OMA setting values:
github.com/eneerge/Azure-Intune-Export-DeviceConfiguration-Decrypts@798ca7d04f/DeviceConfiguration_Export.ps1 (L152-L213)