edmiChangeMyUserBN
Â
EdmiError edmiChangeMyUserBN(SdaiString edmUserName, SdaiString edmUserGroup, SdaiString password, SdaiString *unavailableMessage, 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. A session key is returned from this function. It may be used to reenter the same EDMuser/EDMgroup session.
Arguments
Type | Name | Comment |
SdaiString | edmUserName | Name of an existing EDMuser account in the EDMdatabase. EDMuser account names are case insensitive. The user name is mandatory. |
SdaiString | EdmUserGroup | Name of an existing EDMgroup account in the EDMdatabase. The group name is optional. |
SdaiString | Password | The password of the EDMuser specified by edmUserName |
SdaiString | *unavailableMessage | A variable that will receive the address of a message given by the system administrator to explain why the system has been set unavailable. The text string is allocated in an internal buffer and will be overwritten by the next EDMinterface call. Do not free this string with edmiFree |
SdaiUnsignedInt | *sessionUserKey | A key that may be used to reenter the same session of EDMuser/EDMgroup with edmiChangeMyUser. |
Return Value
Â
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.
Â
 Â