edmiDefineAccessRights


 

EdmiError edmiDefineAccessRights(SdaiAppInstance currInst,
                                  SdaiInstance    userORgroupId,
                                  SdaiUnsignedInt accessRights);


Grants individual access rights to an EDMuser or an EDMgroup. The access rights granted by this function will only be effective in the case where the connected EDMuser/EDMgroup would otherwise be given public access. I.e, owners and administrators can not have their access rights increased or reduced by having individual access rights set. Only owners, administrators and superuser may use this function.

Arguments


TypeNameComment
SdaiAppInstance

currInst

A numeric instanceID that uniquely identifies a protected instance.

SdaiInstance

userORgroupId

A numeric instanceID that uniquely identifies an EDMuser or EDMgroup instance in the EDMdatabase to be granted its own individual access rights.

SdaiUnsignedInt

accessRights

The access rights code is a bitwise OR of any combination of the symbols below:
DELETE_ACCESS, EXECUTE_ACCESS, CREATE_ACCESS, WRITE_ACCESS, READ_ACCESS

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

 EdmiError rstat;
 SdaiRepository repId;
 SdaiUser userId;
  
 rstat = edmiGetRepository("SECRET_ACCOUNTS", &repId);
 rstat = edmiGetUser("EVA_JOLY", &userId);
  
 if (rstat = edmiDefineAccessRights(repId, userId, NONE_ACCESS)) {
 /* Error in operation */
 printf("\nError in edmiDefineAccessRights: %s\n",
 edmiGetErrorText(rstat)); 
 goto error; 
 }
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.

Â