Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »


 
Revokes individually set access rights from an EDMuser or an EDMgroup.
Owners and administrators can not have their access rights increased or reduced by individual access rights.
Only owners, administrators and superuser may use this function.
 
Related functions: edmiDefineAccessRights, edmiGetInstanceAccessRights
Header:
#include "sdai.h"
Prototype:
EdmiError edmiDeleteAccessRights(SdaiAppInstance currInst,
                                  SdaiInstance    userORgroupId);
Arguments:

CurrInst

A numeric instanceID that uniquely identifies a protected instance.

UserORgroupId

A numeric instanceID that uniquely identifies an EDMuser or EDMgroup instance in the EDMdatabase from which granted individual access rights shall be revoked.

Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiRepository repId;
SdaiUser userId;
SdaiUnsignedInt access;
 
rstat = edmiGetRepository("SECRET_ACCOUNTS", &repId);
rstat = edmiGetUser("EVA_JOLY", &userId);
if (rstat = edmiDeleteAccessRights(repId, userId)) {
/* Error in operation */ 
printf("\nError in edmiDeleteAccessRights: %s\n",
edmiGetErrorText(rstat)); 
goto error; 
}
. . .

  • No labels