SCTASK not getting created

shaa066
Tera Contributor

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

1 ACCEPTED SOLUTION

AndersBGS
Tera Patron
Tera Patron

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:

AndersBGS_0-1727425411806.png

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/

View solution in original post

4 REPLIES 4

Rajesh Chopade1
Mega Sage

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.

AndersBGS
Tera Patron
Tera Patron

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:

AndersBGS_0-1727425411806.png

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/

Thank you. I have changed it to system user, I will test again