edmiChangeMyUser

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.

 

Arguments


TypeNameComment
SdaiUnsignedInt

SessionUserKey

The session key returned from edmiChangeMyUserBN.

Return Value


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

 

Options


  

 

Example


 

 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

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