Record producer not submitted for non logged user

sanjeet1245
Tera Guru

I  have been several posts on this topic, and I have tried the suggestions but still cannot seem to make a record producer public. I would like users to be able to submit the record producer via a Service Now Portal without logging in. I have:

-1.Added a record producer to the Service Catalog.
2. Created a User Criteria with role public and added it under Available For on the Record Producer. 
3. Created variables on the Record Producer with Read/Write/Create roles set to public

4. When i submit a record producer without logging in I received an alert message notification(" ErrorSomething went wrong and your request could not be submitted. Please contact your system administrator") and I have to do this task without rest api method .

 

Is There Any Other Option to Achieve This work (EXCEPT REST API).Please Help So That I can Complete this Work .I have mentioned a link below.

https://dev172322.service-now.com/sp?id=sc_cat_item&sys_id=07340efe479df91014aa3378c26d4380&referrer...Screenshot 2023-10-26 181822.png

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@sanjeet1245 

check these links

Unauthenticated users cannot submit catalog items on Service Portal 

"Something went wrong and your request could not be submitted. Please contact your system administra... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Sandeep Rajput
Tera Patron
Tera Patron

@sanjeet1245 Just tested this and it seems that your user doesn't have access to access your submit_producer API. It is throwing 401 Unauthorised access error.

Screenshot 2023-10-26 at 7.16.32 PM.png

Check the access permissions for the public user and see if they can create a record on the table mentioned on the table field of the record producer form.

View solution in original post

12 REPLIES 12

Thankyou very much sir 

Hello sir  @Sandeep Rajput  The Error 401 Unauthorized and the solution given are correct but doing so will open the security which is risky . Any Alternative solution to complete the work.

Hello @sanjeet1245 If this is going to be a public record producer which is going to be used by unauthenticated users then the access needs to be given to the public users, otherwise they will not be able to create records using it. 

 

Instead of opening the record producer access to all unauthenticated users, I would rather choose to have some sort of authentication in place and make use of Explicit Roles plugin (com.glide.explicit_roles) to grant limited access to external users via (snc_external role) please refer to https://docs.servicenow.com/en-US/bundle/vancouver-platform-security/page/administer/contextual-secu... for more information on this plugin. 

 

Hope this helps.