GetUserInfo | MDaemon Technologies, Ltd.

GetUserInfo


  • Since the 23.0.1 update, the getuserInfo function of the API does not return accurate information. When requesting user information, the "<ListMembership>" node displays all the lists on the server, whereas previously it only showed the lists that the user belonged to.

    <?xml version="1.0" encoding="utf-8"?>
                               <MDaemon>
                                       <API>
                                            <Request version="20.0.0" echo="1" verbose="0">
                                                   <Operation>GetUserInfo</Operation>
                                                       <Parameters>
                                                             <Domain>domain.com</Domain>
                                                                   <Mailbox>user</Mailbox>
                                                                   <Get>
                                                                       <All/>
                                                                   </Get>
                                                       </Parameters>
                                             </Request>
                                       </API>
                                </MDaemon>

     



  • I'll run some tests this week and see what I can find. Thanks for reporting it.


  • Javier, I reproduced this. I'll get a fix written today. Unless we issue a new release of MDaemon,it will likely be a post release download of some type after QA is able to test the fix.


  • Correction, it appears that I don't have a repro of this condition. Going to require some further testing.


  • @Javier 

    I cannot reproduce this with MDaemon 23.0.2

    T've run tests using "All" and simply "ListMembership" and the results are correct based on my list settings.

    <?xml version="1.0" encoding="utf-8"?>
    <MDaemon>
    	<API productversion="23.0.2" serviceversion="23.0.2.4">
    		<Request version="23.0" echo="1" verbose="0">
    			<Operation>GetUserInfo</Operation>
    			<Parameters>
    				<Domain>nelson-murdock.int</Domain>
    				<Mailbox>Foggy.Nelson</Mailbox>
    				<Get>
    					<ListMembership/>
    				</Get>
    			</Parameters>
    		</Request>
    		<Response version="23.0" et="0.078057">
    			<Status id="0" value="0x00000000" message="The operation completed successfully."/>
    			<Result>
    				<User id="Foggy.Nelson" displayname="Franklin Nelson, Esq." domain="nelson-murdock.int">
    					<ListMembership>
    						<List id="DomainAdmins@marvel.int"/>
    						<List id="Everyone@nelson-murdock.int"/>
    						<List id="hells-kitchen-charities@nelson-murdock.int"/>
    						<List id="MasterEveryone@marvel.int"/>
    						<List id="Tipline@newyorkbulletin.int"/>
    					</ListMembership>
    				</User>
    			</Result>
    		</Response>
    	</API>
    </MDaemon>
    

     

    <?xml version="1.0" encoding="utf-8"?>
    <MDaemon>
    	<API productversion="23.0.2" serviceversion="23.0.2.4">
    		<Request version="23.0" echo="1" verbose="0">
    			<Operation>GetUserInfo</Operation>
    			<Parameters>
    				<Domain>nelson-murdock.int</Domain>
    				<Mailbox>Karen.Page</Mailbox>
    				<Get>
    					<All/>
    				</Get>
    			</Parameters>
    		</Request>
    		<Response version="23.0" et="0.291937">
    			<Status id="0" value="0x00000000" message="The operation completed successfully."/>
    			<Result>
    				<User id="Karen.Page" displayname="Karen Page" domain="nelson-murdock.int">
    					<Elements_Removed_For_Brevity />
    					<ListMembership>
    						<List id="Everyone@nelson-murdock.int"/>
    						<List id="hells-kitchen-charities@nelson-murdock.int"/>
    						<List id="MasterEveryone@marvel.int"/>
    					</ListMembership>
    					<Elements_Removed_For_Brevity />
    				</User>
    			</Result>
    		</Response>
    	</API>
    </MDaemon>
    

     

    Is it possible that the lists have a CONTACTS:domain.com membership entry that is including them?

    For instance, both of the examples above show the users as members of "hells-kitchen-charities@nelson-murdock.int" because the list membership has the following enry in it...

    CONTACTS:nelson-murdock.int

    Is it possible that the lists have a GROUP:groupname membership entry that is including them?

    For instance, Foggy Nelson in the first example above shows the user as a member of "Tipline@newyorkbulletin.int" because the list membership has the following enry in it...

    GROUP:newyorkbulletin.int Board of Directors


  • hi @Keith Personett 

    When I create distribution lists, Arron commented in a post on how to block the lists from the outside but allow members of the domain to send. MDaemon Technologies, Ltd. Could this configuration be causing interference?

    In this list, I am not created, but it appears when I check the API.


  • hi @Keith Personett 

    After several tests, if you add @domain.com as "postonly," the API confirms that you are in on the list.

    It makes sense since you can send messages to the list.
    Does it work that way?

    If that were the case, wouldn't it be better for it to return information about the member type, such as "type="1" or 2, 3, 4"? This way, the information could be filtered more effectively.


  • @Javier

    Yes, the XML API calls an internal MDList.dll function, which provides those results. I'll create a work item to include the membership type on each list entry for version 23.5. Sound good?


  • Nice sound Good!!


Please login to reply this topic!