Restore site system groups

cancel
Showing results for 
Search instead for 
Did you mean: 
fedorow
Senior Member II

Restore site system groups

Hi! There is site without system groups. For example, the test site in default model have next groups:

GROUP_site_swsdp
GROUP_site_swsdp_SiteManager
GROUP_site_swsdp_SiteCollaborator
GROUP_site_swsdp_SiteContributor
GROUP_site_swsdp_SiteConsumer

and their deleted. I can create it from Share UI or REST API but new groups created in the APP.DEFAULT and AUTH.ALF zones. It means they are in the group browser in default list. I want to move it in the system ALF. SHARE zone.

How to change the parent relation cm:inZone from ALF.DEFAULT to ALF.SHARE? Or how to recreate deleted Groups in ALF.SHARE zone?

Thanks!

 
 

 

 

2 Replies
angelborroy
Alfresco Employee

Re: Restore site system groups

You can specify a ZONE using the REST API, right?

https://api-explorer.alfresco.com/api-explorer/#/groups/createGroup

Hyland Developer Evangelist
fedorow
Senior Member II

Re: Restore site system groups

Angel thanks, but I can't.

First of all there is the comment about APP.DEFAULT zone will be created:

zone1.png

Second, I tryed to specify the zone in groupBodyCreate

{
"id": "test",
"displayName": "test",
"parentIds": [
"GROUP_site_swsdp"
],
"zones": [
"APP.SHARE",
"AUTH.ALF"
]
}

and it is did not work. The group was created in APP.DEFAULT zone. Here is the respond:

{
  "entry": {
    "isRoot": false,
    "displayName": "test",
    "id": "GROUP_test",
    "zones": [
      "APP.DEFAULT",
      "AUTH.ALF"
    ]
  }
}

 

The 'include' field did not describe creation, and just format the response. I checked it too. Then I try to add some thing more then just "zones" it gave me an error.

 

Am I do something wrong?