...
Code Block | ||||
---|---|---|---|---|
| ||||
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
...
Type | Name | Comment |
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: |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
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) | ||||||
---|---|---|---|---|---|---|
|