...
Code Block | ||||
---|---|---|---|---|
| ||||
|
<Description>
Arguments
...
<argument>
Return Value
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Options
...
Option | Comment |
optionname | comment |
Example
...
Code Block | ||
---|---|---|
| ||
<example> |
See also
Filter by label (Content by label) | ||||||
---|---|---|---|---|---|---|
|
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:
Type | Name | Comment |
SdaiUnsignedInt | SessionUserKey | The session key returned from edmiChangeMyUserBN. |
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;
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);
}
. . .