- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 01:05 AM
SCTASK is not getting created if user is raising a request, when I test SCTASK got created.
When I checked the flow context of the user's request it was showing error in the flow " The request flow operation was prohibited by security rules".
what is the issue here
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 01:24 AM
Hi @shaa066,
Check the flow designer for how it's created. In the "run as" on the flow properties, I would guess that you have selected "user who initiates session". If you change this to "system user" it should work:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 01:09 AM - edited 09-27-2024 01:12 AM
Hello @shaa066,
Please find the below link and let me know whether it is helpful or not.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0870023
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0754165
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0861909
Thanks
SP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 01:14 AM
hi @shaa066
The error message "The request flow operation was prohibited by security rules" typically indicates that the user attempting to raise the request does not have the necessary permissions to create or manipulate the SCTASK (Service Catalog Task) associated with the request.
Ensure that the user has the appropriate roles to create SCTASKs. Typically, users should have roles such as catalog_user, service_catalog_admin or any other custom roles that allow task creation.
Check if there are any access controls defined for the sc_task table that might be preventing the user from creating SCTASKs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 01:24 AM
Hi @shaa066,
Check the flow designer for how it's created. In the "run as" on the flow properties, I would guess that you have selected "user who initiates session". If you change this to "system user" it should work:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 01:32 AM
Thank you. I have changed it to system user, I will test again