Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Maximum Time Frame validation not working for Emergency Access Role Request

randhir_kumar
New Contributor III
New Contributor III

Hi Team,

I have set the Maximum Time Frame as 2 for Emergency Access Role and raising request using createrequest API and sending startDate(date and time) and endDate(date and time) and the difference between startdata and enddate not more than 2 hours but API returning returning error response as below:

{
    "msg""End date should be greater than start date",
    "errorCode""1"
}
Also the API allowing to raise request for next day date(enddate).
Can any confirm is there any config changes required.
 
 
Thanks,
Randhir Kumar.
3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Please share api payload


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Hi Rushikesh,

Please find below payload:

{
"accesstype":"ROLES",
"username":"elena",
"roletype":"FIREFIGHTER",
"requesttype":1,
"roles":[
"rolename" : "Emergency Role AD",
"startdate" : "03-14-2024 11:22:00", 
"enddate" : "03-14-2024 13:00:00"
 
} ],
"requestcomments":"test",
"requestor":"elena"
}
 
Thanks.

Does it works from UI ?


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.