๐ซGroup
Get content restriction status for group
var endpoint strings.Builder
endpoint.WriteString(fmt.Sprintf("wiki/rest/api/content/%v/restriction/byOperation/%v/", contentID, operationKey))
// check if the group id is an uuid type
// if so, it's the group id
groupID, err := uuid.Parse(groupNameOrID)
if err == nil {
endpoint.WriteString(fmt.Sprintf("byGroupId/%v", groupID.String()))
} else {
endpoint.WriteString(fmt.Sprintf("group/%v", groupNameOrID))
}Add group to content restriction
Remove group from content restriction
Last updated
Was this helpful?
