Ifd:addContextOwners

From dev.ifd-library.org

Jump to: navigation, search
Function public IfdUser [] addContextOwners (
                                                        String context_guid,
                                                        String[] owner_guids,
                                                        String session_id )
                                  throws IfdServerException


Express heading

QUERY_FUNCTION addContextOwners( context_guid : STRING ;
                                                    owners : LIST OF IfdUser) :  LIST OF IfdUser;


Function to add new owners to a context. Only a context owner can add users to a context. If there are no owners anyone can add a new owner. The current user is automatically added as new owner.

Input:

  • string context_guid - the GUID of the context that the owners should be added to
  • String [] owner_guids - An array of global unique identifiers for all owners to be added as context users. The current user will be added as owner regardless if it is in the list or not.
  • session_id - the session id for the current user

Return:

  • IfdUser [] - An array containing the updated list of all owners for the given context.

Back to the API

Comments: