How to transfer Circles ownership

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.10
  • Operating system and version (e.g., Ubuntu 24.04):
    • Rocky Linux 9
  • Web server and version (e.g, Apache 2.4.25):
    • Apache httpd 2.4
  • PHP version (e.g, 8.3):
    • 8.1

Hi,

There’s a circles group made by person A who left the organization now I need to transfer it’s ownership to person B, I know I can transfer files but I am unable to find any documentation how can I transfer ownership of circles group, can you please guide me or refer me the relevant documentation.

thank you
Junaid

I have found answer to my query, Please check this URL

"A bit late but maybe can be useful to other people with the same problem. For me the issue was to specify --type on command. If this is mandatory it should be mentioned on help page

occ circles:members:add --type=user $_circleId $_username

To promote a user you need their member id. You can get it from occ and pipe to into jq to get the specific memberid.

_memberId=$(occ circles:members:list --output=json ${_circleId} | jq ".[] | select(.userId==\"${_username}\")" | jq ' .id')

…and then…

occ circles:members:level ${_memberId} admin

(use admin or owner or whatever you want to set)"

1 Like