What does SNC.AssessmentCreation().checkAssessmentAllowed do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-30-2024 11:02 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 12:39 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2024 06:20 PM
Thanks for your inputs. May I know which assignment group is this? I can only see assessment group

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 01:37 PM
I just assumed the name, if the field is assessment group then that's what I was referring to ha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 04:28 PM - edited 06-03-2024 04:31 PM
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.
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