Forums

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

Upload bulk Space permission from CSV

tarakeswar_dubey December 5, 2018

Hi.

Using bob Swift CLI I'm try to do following action: (new to CLI)

 

* Fetch permission in CSV format of a space (that's done)

* Attached is permission csv file

* Run CLI command to udate that permission to another space from the CSV file.

Capture.PNG

 

 On  a note: While moving space from one to another instanace; space permission are not migrating, hence copy permission from one instance to another.

1 answer

1 accepted

2 votes
Answer accepted
Deleted user December 6, 2018

Hi @tarakeswar_dubey,

The CSV file should be like the following.

For Individual Permissions:
space, userid, permissions

For Groups based Permissions:
space, group, permissions

Please update your csv file to match like the following.

new-cli.jpgThe valid permissions are

 viewspace,editspace,setpagepermissions,removepage,editblog,removeblog,comment,removecomment,createattachment,removeattachment,removemail,removeowncontent,exportspace

You then would need to execute the below command to add the permissions in the space.

 --action runFromCsv --file gspl2.csv --common "--action addPermissions"

When you copy a space, you can use the below command, so that the permissions are also copied. 

--action copySpace --space "zclipermissions" --targetServer "http://confluence.examplegear.com"  --newSpace "zclipermissionsAnotherTarget565241"  --name "zclipermissionsAnotherTarget565241"  --description "copied space"  --replace  --copyPermissions  --mergePermissions  --verbose

Thanks,

Raja

tarakeswar_dubey December 10, 2018

Thanks Raja.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events