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

Neither of these resources cover the information requested from @Kirby R ?

Kieran Anson
Kilo Patron

I've not been able to find any documentation. To recreate your issue, how is the user accessing the assessment, are they using a UI action on a form (what form?) or by a link? Can you provide some additional context?

 

Is the asmt_assessment_instance assigned to the user in question? or to a group they're a member of? Does the asmt_metric_type have any role or filter restrictions defined?

Hi @Kieran Anson ,

 

This is from ui action in asssement instance. 

cf1b292f-251f-4a59-b686-b07cfe24017c.jpg

Upon clicking, i am shown this.

 

not-authorized.JPG

 

Additional context, user trying to take assessment is not the assigned to but is an admin. Metric type has certain role in it.

We are trying a customization to allow multiple users to take the assessment. I want to know what that function checkAssessmentAllowed does so that know what customization is needed(ie. modify that ui page, add roles to user, remove role to metric type etc).