Share via

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

2021-09-02T14:12:24.693+00:00

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

Microsoft Security | Intune | Configuration
0 comments No comments

1 answer

Sort by: Most helpful
  1. Lu Dai-MSFT 28,531 Reputation points
    2021-09-03T01:30:14.953+00:00

    @Venkata Srinivasa Kumar Barathula 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.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.