Get DRA Cert expiration

%3CLINGO-SUB%20id%3D%22lingo-sub-2162674%22%20slang%3D%22en-US%22%3EGet%20DRA%20Cert%20expiration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2162674%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Folks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20facing%20an%20issue%20that%20I%20want%20to%20monitor%20the%20end%20date%20of%20our%20DRA%20cert%20and%20the%20best%20option%20that%20I%20have%20found%20is%20to%20list%20out%20our%20WIP%20policies%20via%20Graph%20API%20and%20there%20should%20be%20the%20date.%20So%20I%20made%20an%20app%20and%20set%20the%20necessary%20permission%20for%20that%20and%20when%20I%20submit%20my%20request%20I%20receive%20an%20empty%20array%20with%20200%20Ok%2C%20but%20I%20have%20more%20WIP%20policies.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22rodoj_0-1614179326751.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F257403i2802EB5296DED917%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22rodoj_0-1614179326751.png%22%20alt%3D%22rodoj_0-1614179326751.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20using%20this%20request%3A%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fintune-mam-windowsinformationprotectionpolicy-list%3Fview%3Dgraph-rest-1.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EList%20windowsInformationProtectionPolicies%20-%20Microsoft%20Graph%20v1.0%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FP%3E%3CP%3EI'm%20using%20application%20permission%20instead%20of%20delegated%20because%20it%20doesn't%20work%20with%20delegated%20permission.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I'm%20doing%20wrong%3F%20Could%20somebody%20help%20me%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EJ%C3%B3zsef%20%C3%93dor%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hello Folks,

 

I'm facing an issue that I want to monitor the end date of our DRA cert and the best option that I have found is to list out our WIP policies via Graph API and there should be the date. So I made an app and set the necessary permission for that and when I submit my request I receive an empty array with 200 Ok, but I have more WIP policies.

rodoj_0-1614179326751.png

 

I'm using this request:

List windowsInformationProtectionPolicies - Microsoft Graph v1.0 | Microsoft Docs

I'm using application permission instead of delegated because it doesn't work with delegated permission. 

 

What I'm doing wrong? Could somebody help me? 

 

Best regards,

József Ódor

0 Replies