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 »


 
Removes an EDMuser from 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.
This command is only permitted for the superuser.
Related functions: edmiUserFromGroupBN, edmiUserToGroupBN, edmiUserToGroup .
Header:
#include "sdai.h"
Prototype:
EdmiError edmiUserFromGroup(SdaiInstance groupId,
                             SdaiInstance userId);
Arguments:

GroupId

A numeric groupID that uniquely identifies the edm_group instance in the EDMdatabase

UserId

A numeric userID that uniquely identifies the edm_user instance in the EDMdatabase that defined the actual EDMuser.

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;
SdaiUser myUserId;
SdaiGroup groupId;
. . .
rstat = edmiGetMyUserId(&myUserId);
rstat = edmiGetGroupBN("SUPERVISOR", &groupId);
. . .
if (rstat = edmiUserFromGroup(groupId, myUserId)) {
/* Error in operation */
printf("\nError: %s in edmiUserFromGroup\n", 
edmiGetErrorText(rstat)); 
goto error; 
}
. . .

  • No labels