The Zurich release has arrived! Interested in new features and functionalities? Click here for more

What does SNC.AssessmentCreation().checkAssessmentAllowed do?

Kirby R
Kilo Sage

Hi All,

 

Does anyone know what does SNC.AssessmentCreation().checkAssessmentAllowed do? Whether high level description or technical.

 

I'm facing an issue where a user is unable to take control attestations. I have debugged it and the cause seems to point to assessment_take2 ui page.

 

I also searched in ServiceNow official api reference and this method is not documented anywhere.

8 REPLIES 8

Thanks for the additional information. I would reach out to Support for this information and to understand the conditional base in which this internal Java function permits access. Based on my testing, it checks if you're the assigned_to or a member of the assignment_group.

Thanks for your inputs. May I know which assignment group is this? I can only see assessment group

I just assumed the name, if the field is assessment group then that's what I was referring to ha

Community Alums
Not applicable

Hi @Kirby R ,

 

As far as i have worked on assessments can say that the  method checkAssessmentAllowed will check if user has access to take the assessment or not. As Kieran mentioned it should be checking few field data like Assessment group, assigned to and state as well, highlighted in the below screenshot.

SanjayG_0-1717456828418.png

it should be something like , state is Ready to take, assessment group is not empty and assigned to is current logged in user. If all are true then only user should be able to take the assessment.

There might also be conditions to check the roles, if user has specific roles.

 

As SNC is a system function which we don't have access to, so cannot check exact conditions.

As a high level you can consider the above. 

If my response has resolved your query, please consider giving it a thumbs up ‌‌ and marking it as the correct answer‌‌!

 

Thanks & Regards,

Sanjay Kumar