getPermissionsForUser()
Home > @gooddata/sdk-backend-spi > IOrganizationPermissionService > getPermissionsForUser
IOrganizationPermissionService.getPermissionsForUser() 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.
Get list of assigned workspaces and data sources of the user and their permissions.
Signature:
getPermissionsForUser(userId: string): Promise<{
workspacePermissions: IWorkspacePermissionAssignment[];
dataSourcePermissions: IDataSourcePermissionAssignment[];
}>;
Parameters
Parameter | Type | Description |
---|---|---|
userId | string | ID of the user. |
Returns:
Promise<{ workspacePermissions: IWorkspacePermissionAssignment[]; dataSourcePermissions: IDataSourcePermissionAssignment[]; }>
promise