Scope does not have delete access to table alm_stockroom

Munna1
Tera Contributor

Hello everyone, I am working on a flow designer flow and I have a delete record action that is supposed to delete a record in the alm_stockroom table, but when it hits that action I get the error "Scope does not have delete access to table alm_stockroom". In the HAM scope I have given application access for HAM application scope to be able to delete from alm_stockroom, but I am still getting this error in the flow designer on my scoped application. Anyone know why this might be?

find_real_file.png

 

3 REPLIES 3

Sulabh Garg
Mega Sage
Mega Sage

Hi Munna,

As alm_stockroom is present in Global scope and if you are deleting the record from this table in another scope then you need to create cross scope privileges to give the delete access from source scope to the target scope, Here Target scope will be Global.

Hope it helps!!

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 
Regards
Sulabh Garg

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Community Alums
Not applicable

Hi Munna,

Check Restricted Caller Acess to see if there is an entry with Invalidated or Requested status? If so, update it to Allowed.  

and if it's not available then make a entry.

so the table "alm_stockroom" has Caller Access as "Caller Restriction"

So whenever this table is being read from other scope it would create an entry into Restricted Caller Access table with Status as Requested

Try searching for this table and source scope as your custom scope and mark Status as Allowed

1) Target Table - alm_stockroom

2) Target Type - table

3) Operation Read

4) Status should be set to Allowed

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Dan Covic2
Tera Contributor

In my case (I created a Flow to add/remove an user to a group (by creating/deleting records in the sys_user_grmember)), I got a similar error but for the sys_user_grmember table.

A solution I found to be working was simply to e
nable `Can Delete` access to all Application scopes on the sys_user_grmember table.

For alternative solutions these links may be helpful:

- https://www.servicenow.com/community/developer-forum/cross-scope-flow-access-issue-to-delete-record-...
https://www.servicenow.com/community/developer-forum/can-t-create-sys-user-group-records-from-scoped...

https://www.servicenow.com/community/now-platform-forum/random-quot-restricted-caller-access-privile...

https://www.servicenow.com/community/developer-forum/delete-operation-against-sys-user-grmember-from...

https://www.reddit.com/r/servicenow/comments/1efvivk/flow_create_action_error_scope_does_not_have/