Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How remove user permissions by the script?

Suvi Leto
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2023

Hi!

I try to remove all space permissions of unsynced users. So this is code, but it isn't working, there is an errors. Does anyone know why? How fix it?

Thank you.Снимок.PNG

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2023

Welcome to the Atlassian Community!

I am not sure what is going wrong with your script, but I think you might need to take a slightly different approach. 

Working space by space in Confluence tends to work a lot better.  https://library.adaptavist.com/entity/copy-user-space-permissions-to-group is for adding permissions but should be easy to adapt to removal.

TAGS
AUG Leaders

Atlassian Community Events