edmiRemoteUserFromGroup

EdmiError edmiRemoteUserFromGroup(SdaiServerContext serverContextId,
                                   SdaiGroup         groupId,
                                   SdaiUser          userId, 
                                   SdaiInvocationId  *edmiInvocationId);


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. Only the superuser may use this function.

Arguments


TypeNameComment
SdaiServerContext

serverContextId

Context identification, from edmiDefineServerContext

SdaiGroup

groupId

The numeric groupID that uniquely identifies the EDMgroup from which to remove the EDMuser.

SdaiUser

userId

The numeric userID that uniquely identifies the EDMuser to be removed from the EDMgroup.

SdaiInvocationId

edmiInvocationId

Currently not used.

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_EDMInterface'.

 

Options


  

 

Example


 

 EdmiError rstat;
 SdaiServerContext suContext;
 SdaiUser lucyUserId;
 SdaiGroup guestGroupId, friendGroupId;
  
 /* Define Remote Server Context
 for the superuser */ 
 rstat = edmiDefineServerContext("SuperUserContext",
 "superuser", NULL, "xfx56kl9",
 "TCP", "9090", "MyServerHost",
 NULL, NULL, NULL, NULL, NULL, &suContext); 
  
 /* Get the group Ids */
 rstat = edmiRemoteGetGroup(suContext, "Guest", &guestGroupId, NULL);
 rstat = edmiRemoteGetGroup(suContext, "Friend", &friendGroupId, NULL);
  
 /* Get the user Id for 'Lucy' */
 rstat = edmiRemoteGetUser(suContext, "Lucu", &lucyUserId, NULL);
  
 /* Remove user 'Lucy' from group 'Guest' */
 rstat = edmiRemoteUserFromGroup(suContext, guestGroupId, lucyUserId, NULL);
  
 /* Insert user 'Lucy' into group 'Friend' */ 
 rstat = edmiRemoteUserToGroup(suContext, friendGroupId, lucyUserId, NULL);
 . . .

 

See also

Filter by label

There are no items with the selected labels at this time.