Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagecpp
themeConfluence
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

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 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 (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"