Ifd:addContextUsers
From dev.ifd-library.org
API version 2
Function public IfdUser [] addContextUsers ( String context_guid, String[] user_guids, String session_id ) throws IfdServerException
Express heading
QUERY_FUNCTION addContextUsers(
context_guid : STRING ; users : LIST OF IfdUser) : LIST OF IfdUser;
Function to add new users to a context. Only a context owner can add users to a context
Input:
- string context_guid - the GUID of the context that the users should be added to
- String [] users - An array of global unique identifier of for all users to be added as context users
- session_id - the session id for the current user
Return:
- IfdUser [] - An array containing the updated list of all users for the given context
API version 3
Function public IfdUser [] addContextUsers ( String session_id, String context_guid, String[] user_guids) throws IfdServerException
Express heading
QUERY_FUNCTION addContextUsers(
context_guid : STRING ;
user_guids : LIST OF STRING) : LIST OF IfdUser;
The function adds more users to the context, granting R/O access rights them in spite of IsRestricted attribute context’s value.
Input:
- session_id - the session id for the current user
- string context_guid - global unique id of the target context;
- string [] users_guids -list of user global unique id-s to become users of the specified context
Return:
- IfdUser [] - List of fully specified IFD users – users of the specified context (see getContextUsers output), not only just added
Difference with v.2.00
- (31) For contexts without owners the function allows to add new users only to database superuser. In v.2.00 the function allow to add users only to the context owners
Comments: