I have create workflow with below steps:
1) Set all user permission with read.
2) set variable and condition
3) Set permission for user as edit /read..
4) Update Items
But I am getting error occurred. In logs i check it was giving time out error.
Strange part is that all steps are executed successfully till "update items".
I have also used "commit pending changes" but yet no effects.