GoodData.UI API reference
  • GoodData.UI
  • Docs & APIs
  • Developers
  • GoodData.CN
  • GoodData.UI
  • Docs & APIs
  • Get GoodData.CN Community Edition
  • 10.26.0
  • Code samples
  • Gallery
  • GitHub

changeAccess()

Home > @gooddata/sdk-backend-spi > IWorkspaceAccessControlService > changeAccess

IWorkspaceAccessControlService.changeAccess() method

This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Function that allows to change access (add, edit, revoke) to an object for multiple grantees. If the grantee permissions array is empty, the access is revoked. Otherwise, it is set to the permissions in the array.

If backend does not support granular permissions, the array content is used only to check if access should be granted or revoked.

Signature:

changeAccess(sharedObject: ObjRef, grantees: IGranularAccessGrantee[]): Promise<void>;

Parameters

ParameterTypeDescription
sharedObjectObjRefthe ref of object that will have access changed
granteesIGranularAccessGrantee[]list of grantees that will have access changed for the shared object

Returns:

Promise<void>

  • IWorkspaceAccessControlService.changeAccess() method
  • Parameters
GoodData resources:
  • Documentation
Follow the community:
  • Community
Copyright © 2007–2025 GoodData Corporation. All Rights Reserved. Code licensed under a dual license - CC BY‑NC 4.0 for trial experience and GoodData.UI EULA for commercial use