...
Code Block | ||||
---|---|---|---|---|
| ||||
EdmiError edmiRemoteUserToGroupBN(SdaiServerContext serverContextId,
SdaiString groupName,
SdaiString userName,
SdaiInvocationId *edmiInvocationId);
|
Makes an EDMuser a member of an EDMgroup. EDMusers may be members of any number of EDMgroups. Access to database objects may be set for EDMgroups as well as for EDMusers. Access Checking will only be performed if the EDMuser is connected with an EDMgroup.
Only the superuser may use this function. Related functions: edmiRemoteUserToGroup, edmiRemoteUserFromGroup, edmiRemoteUserFromGroupBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiRemoteUserToGroupBN(SdaiServerContext serverContextId,
SdaiString groupName,
SdaiString userName,
SdaiInvocationId *edmiInvocationId);
Arguments:
Arguments
...
Type | Name | Comment |
SdaiServerContext | serverContextId | Context identification, from edmiDefineServerContext |
SdaiString | groupName | The name of the EDMgroup in from which to include remove the EDMuser. |
SdaiString | userName | The name of the EDMuser to include in be removed from the EDMgroup. |
SdaiInvocationId | edmiInvocationId | Currently not used. |
...
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Example
...
Code Block | ||
---|---|---|
| ||
/* Move user 'Lucy' from group 'Guest' to group 'Friend' */ EdmiError rstat; SdaiServerContext suContext; /* Define Remote Server Context for the superuser */ rstat = edmiDefineServerContext("SuperUserContext", |
...
"superuser", NULL, "xfx56kl9", |
...
"TCP", "9090", "MyServerHost", |
...
NULL, NULL, NULL, NULL, NULL, &suContext); |
...
/* Remove user 'Lucy' from group 'Guest' */ |
...
rstat = edmiRemoteUserFromGroupBN(suContext, "Guest", "Lucy", NULL); |
...
/* Insert user 'Lucy' into group 'Friend' */ |
...
rstat = edmiRemoteUserToGroupBN(suContext, "Friend", "Lucy", NULL); |
...
. . . |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|