Versions Compared

Key

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

...

Code Block
languagecpp
themeConfluence
EdmiError edmiChangeMyUser(SdaiUnsignedInt sessionUserKey);


Connecting a new EDMuser/EDMgroup without disconnecting the existing connection. >
Provided the new connected EDMuser/EDMgroup has sufficient access rights, all repositories and models will remain in the same open mode. Otherwise, access modes will be reduced to the highest access available.

  Related functions: edmiChangeMyUserBN
Header:
#include "sdai.h"
Prototype:
EdmiError edmiChangeMyUser(SdaiUnsignedInt sessionUserKey);
Arguments:

Arguments

...

TypeNameComment
SdaiUnsignedInt

SessionUserKey

The session key returned from edmiChangeMyUserBN.

...

Return Value

...

Insert excerpt
US:_r_EDMInterface
US:_r_EDMInterface
nopaneltrue

 

Options

...

  

 

Example

...

 

Code Block
languagecpp
 EdmiError rstat;
 SdaiUser myUserId;
 SdaiUnsignedInt myKey, superKey;
 edmiChangeMyUserBN("superuser", NULL, "LotR1953", &msg, &superKey);

...


 edmiChangeMyUserBN("Gabriel", "Genesis", "abacab", &msg, &myKey);

...


 . . .

...


 if (modId = edmiGetModelBN("myRepository", "myModel")) {

...


 edmiGetMyUserId(&myUserId);

...

 
 edmiChangeMyUser(superKey);

...

 
 edmiChangeInstanceOwner(modId, myUserId, SET_OWNER | REPLACE_CURRENT);

...

 
 edmiChangeMyUser(myKey);

...

 
 }
 . . .

 

See also

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