question

VenkataSrinivasaKumarBarathula-2315 avatar image
0 Votes"
VenkataSrinivasaKumarBarathula-2315 asked LuDaiMSFT-0289 commented

getOmaSettingPlainTextValue method giving 403 forbidden for azureapp even though having required permissions

My automation has been broken due to custom uri omasettingstring value become encrypted,

I've an automation to read this value and append anything required via azure app for a purpose.....

now the value is encrypted and application permissions are not working to get plain text value from omasetting (getOmaSettingPlainTextValue Method), which is working with my work account.

I've checked all permissions for app still its not working and providing me the response as "403 - Forbidden"


Any help is greatly appreciated.

Thankyou
Sreenivas



mem-intune-device-configurations
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LuDaiMSFT-0289 avatar image
0 Votes"
LuDaiMSFT-0289 answered LuDaiMSFT-0289 commented

@VenkataSrinivasaKumarBarathula-2315 Thanks for posting in our Q&A. From your description, I know that you want to use getOmaSettingPlainTextValue function via Graph API, but it gets 403 forbidden error. If there is anything misunderstanding, feel free to let us know.

For this issue, it is suggested to try the following actions:
1.Please make sure that we add "DeviceManagementConfiguration.Read.All" and "DeviceManagementConfiguration.ReadWrite.All" in permissions of Graph.
128833-image.png

2.Click on "F11" before we edit the OMA-URL settings. Then we will find the request URL about this custom profile. For example:
128891-image.png

3.Please try to run the request URL in Graph and check if it is successful.

Hope it will help.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (33.4 KiB)
image.png (95.6 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@VenkataSrinivasaKumarBarathula-2315 I am currently standing by for further update from you and would like to know how things are going. If you have any questions or concerns on the recent information I've provided you, please don't hesitate to let me know.

0 Votes 0 ·