cancel
Showing results for 
Search instead for 
Did you mean: 

Restore site system groups

fedorow
Elite Collaborator
Elite Collaborator

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 2

angelborroy
Community Manager Community Manager
Community Manager

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

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

Hyland Developer Evangelist

fedorow
Elite Collaborator
Elite Collaborator

Angel thanks, but I can't.

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

image

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?