Sharing

Sharing Documents

You may share your documents with another user here. They will now be able to do anything that you can. It's important that you only share documents with users that you trust.

The user that you are sharing with be be in an organization that has been declared available for sharing with the Add Sharable Organizations function.

ok, err := ShareDocument(docID, otherUserID)
if err != nil {
fmt.Printf("Could not share: %v", err)
os.Exit(1)
}

Organization administrators must first add the OrgID of the sharee's organization with AddSharableOrg.

Unsharing Documents

This allows you to unshare documents previously shared.

ok, err := UnshareDocument(docID, otherUserID)
if err != nil {
fmt.Printf("Could not unshare: %v", err)
os.Exit(1)
}

Add Sharable Organizations

Before any users can share their documents with users from other organizations, administrators must first add those organizations to a whitelist with this function.

ok, err := AddSharableOrg(orgID)
if err != nil {
fmt.Printf("Could not Add Sharable Organization: %v", err)
os.Exit(1)
}

Remove Sharable Organizations

Administrators may also remove organizations from the whitelist with RemoveSharableOrg.

ok, err := RemoveSharableOrg(orgID)
if err != nil {
fmt.Printf("Could not Remove Sharable Organization: %v", err)
os.Exit(1)
}

Set Multi-Level Sharing

Updates your organization's multi-level sharing settings.

ok, err := SetMultiLevelSharing("true")
if err != nil {
fmt.Printf("Could not Set Multi-Level Sharing: %v", err)
os.Exit(1)
}