PARTNERS - Please join us for our upcoming webinar:
Leveraging Intelligent Recommendations for Operational Transformation.
AMS Partners click HERE | EMEA/APJ Partners click HERE

create request API Internal server Error when trying to request Emergency Access Role

Vamsi
New Contributor III
New Contributor III

Hi,

we are trying to request emergency access role via createrequest API but we are getting 500 Internal Server Error . Any one using this api to request Emergency access roles and succeeded.  Below is the request body. Below request body is same as defined in the api documentation API Document 

{
"accesstype":"ROLES",
"username":"testuser1",
"roletype":"FIREFIGHTER",
"requesttype":1,
"roles":[
    { 
"rolename" : "prodtest",
"startdate" : "10-19-2022"
"enddate" : "10-20-2022",
"businessJustification" : "test justification"
} ],
"requestcomments":"commemnt",
"requestor":"testuser1"
}
4 REPLIES 4

rushikeshvartak
All-Star
All-Star

Can you provide screenshot from Postman & logs when you hit Send from postman


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Vamsi
New Contributor III
New Contributor III

Hi Rushi,

Attached postman screenshots  and below is the only log getting generated

2022-10-19 08:34:14,540 [https-jsse-nio-443-exec-58] DEBUG rest.JwtService - Parsed an HMAC signed JWT
2022-10-19 08:34:14,541 [https-jsse-nio-443-exec-58] DEBUG rest.JwtService - Parsed an HMAC signed JWT
2022-10-19 08:34:14,544 [https-jsse-nio-443-exec-58] DEBUG println.PrintlnToLogger - Println :: CAME HERE FOR CSRF_TOKEN SESSION 
2022-10-19 08:34:14,587 [https-jsse-nio-443-exec-58] DEBUG ws.Restfulv5Controller - Default max limit is set to 50
2022-10-19 08:34:14,587 [https-jsse-nio-443-exec-58] DEBUG ws.Restfulv5Controller - Enter createrequest
2022-10-19 08:34:14,587 [https-jsse-nio-443-exec-58] DEBUG ws.Restfulv5Controller - Processing Roles createrequest
2022-10-19 08:34:14,589 [https-jsse-nio-443-exec-58] ERROR auth.OauthProviderService - Error...
java.lang.NullPointerException
2022-10-19 08:34:14,589 [https-jsse-nio-443-exec-58] ERROR ws.Restfulv5Controller - Error...
java.lang.NullPointerException
2022-10-19 08:34:14,590 [https-jsse-nio-443-exec-58] DEBUG ws.Restfulv5Controller - Processing Roles createrequest completed

KirtiAjrot
Saviynt Employee
Saviynt Employee

hi Vamsi , 

The payload looks fine. 

Can you check if you are providing the role name and not the role display name instead?

Is the role status Active?

Also, is the Role marked as Requestable =true ?

is the Role Modification Workflow mapped?

If these are correct and still face the issue , please reach out to Saviynt Support via FD ticket. 

KA

Vamsi
New Contributor III
New Contributor III

Hi Kriti,

Every thing is in place , just double validated all the points above role is active, requestable is true, workflow mapped but still getting error.