Access to api 'setWorkflow' from scope 'sn_ex_sp' has been refused due to the api's cross-scope access policy

Afsar Hussain
Kilo Guru

Hi,

When I am trying to update any article by clicking on 'Checkout' button, I am getting this error message -

"Access to api 'setWorkflow' from scope 'sn_ex_sp' has been refused due to the api's cross-scope access policy."

Even when I am deleting a draft article which is not required, I am getting the same error message. But the article is getting deleted.

Can someone tell me how to handle this error?

See the attachment for more clear understanding.

Regards,

Afsar

5 REPLIES 5

Allen Andreas
Administrator
Administrator

Hello,

The setWorkflow API is only to prevent business rules from running.

So you're most likely in a scope in your instance, change scope to global, and you would not see the issue.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi @Allen Andreas ,

Actually the user who is doing this is not having developer role, so he is not able to select or change the scope.

Is there any other way possible?

Hi,

Can you see if there are other errors, like what is mentioned in this article?

https://community.servicenow.com/community?id=community_article&sys_id=073eb4551b433894a59033f2cd4bc...

There were some errors back in Rome that may need to be adjusted by giving permission.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

I have followed the above article shared by you.

The status is already set to 'Allowed' but even though I am seeing the same error.

Regards,

Afsar