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


TypeNameComment
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


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.

 

 Â