The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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