Can I put the value of instanceDurationInDays in minutes for the QA while creating access reviews using powershell?

Sumit Bhargav 0 Reputation points
2024-05-27T13:42:49.5833333+00:00

I am able to create an azure access reviews with Graph API 1.0 using PowerShell. Now, there is a property called instanceDurationInDays which should have an integer value. The access review will remain active for the number of days of the value of instanceDurationInDays. Now, I want the review to expire early so the QA team can test the scenarios and dont have to wait for a day to validate. How can I achieve that? I have tried putting the value in decimal but its not working and throwing an error that the minimum value must be 2 days for this property.

Can anybody help me on this case?

Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,327 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,561 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,615 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,205 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Rich Matheisen 46,971 Reputation points
    2024-05-28T15:12:45.8133333+00:00

    An integer is a whole number. By definition, it can't be a fraction. Integers can be positive or negative. They can also have a value of zero.

    The intended use of instanceDurationInDays would seem to also preclude it from having a value of zero or being negative.

    0 comments No comments

  2. Shweta Mathur 29,856 Reputation points Microsoft Employee
    2024-05-29T06:22:57.7466667+00:00

    Hi @Sumit Bhargav ,

    Thanks for reaching out.

    As the name of instanceDurationInDays property suggests, the duration of an access review instance cannot be modified in minutes. It is only available in days and is defined as an Int32 property.

    User's image

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.


Your answer

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