Versions Compared

Key

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

...

 

Code Block
languagecpp
themeConfluence
EdmiError edmiUserToGroup(SdaiInstance groupId,
                            SdaiInstance userId);

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

...

groupId

Arguments

...

userId
TypeNameComment
SdaiInstance

GroupId

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

SdaiInstance

UserId

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

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

Options

...

 

Example

...

 

Code Block
languagecpp
EdmiError rstat;
 SdaiUser myUserId;
 SdaiGroup groupId;
 . . .
 rstat = edmiGetMyUserId(&myUserId);

...


 rstat = edmiGetGroupBN("SUPERVISOR", &groupId);

...


 if (rstat = edmiUserToGroup (groupId, myUserId) {

...


 /* Error in operation */

...


 printf("\nError: %s in edmiUserToGroup\n",

...

 
 edmiGetErrorText(rstat));

...

 
 goto error; 
 }

 
}
. . .

See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "model" and parent = "6062220"