# Introduction `FindMembership` is one of the SOAP actions the [Contact Sharing Service](../sharingservice.md) provides. Returns the full list of members in the Allow List (AL), Block List (BL), Reverse List (RL) and Pending List (PL). For retrieving information about the Forward List (FL), read the [`ABFindAll`](../abservice/abfindall.md) article. # Client/Request The template used in this action is described on the [Address Book Service](../abservice.md) main page. ## FindMembership This element has only one attribute: * `xmlns`: Is always set to `http://www.msn.com/webservices/AddressBook`. ### serviceFilter This element only contains the `` element. #### Types This element contains one or multiple `` elements. ##### ServiceType Can be any of the following: * `Messenger` * `Invitation` * `SocialNetwork` * `Space` * `Profile` ### View Always set to `Full`. ### deltasOnly If set to `true`, the `` value is compared against the server to only provide the updates since the timestamp provided. ### lastChange This is a ISO 8601 timestamp which denotes the last time you retrieved the memberships, comes from the response's `` element inside the `` element. # Server/Response The template used in this action is described on the [Address Book Service](../abservice.md) main page. ## FindMembershipResponse This element only contains the `` element. ### FindMembershipResult This element only contains both the `` and the `` element. #### Services This element only contains one or multiple `` elements. ##### Service This element only contains one or multiple [``](#memberships) elements. #### OwnerNamespace This element contains four children: * ``: Described [below](#info). * ``: A space delimited list of elements changed in an unknown location. * ``: The ISO 8601 timestamp of the time this member was created. * ``: The ISO 8601 timestamp of the time a change was last made to the memberships. ##### Info This element contains four children: * ``: Described [below](#handle). * ``: This is always set to `0`. * ``: The Common ID of this member. * ``: The user handle of this member. ###### Handle This element contains three children: * ``: The [Address Book Service](../abservice.md) GUID. * ``: This is always set to `false`. * ``: This is always set to `0`. # Memberships This element only contains one or multiple `` elements. ## Membership This element has three children: * ``: The type of list: * `Allow`: The Allow List (AL). * `Block`: The Block List (BL). * `Reverse`: The Reverse List (RL). * ``: Explained [below](#members). * ``: If this is the full list of `` in this ``, set to `true`, otherwise, set to `false`. ### Members This element only contains one or multiple `` elements. #### Member This element has only one attribute: * `xsi:type`: The type of this ``: * `PassportMember` * `EmailMember` * `PhoneMember` This element contains seven children: * ``: The type of this ``: * `Passport` * `Email` * `Phone` * ``: This is usually only set to `Accepted`. * ``: Has this member been deleted? (`true` or `false`). * ``: The ISO 8601 timestamp of the time this member was last modified. * ``: The ISO 8601 timestamp of the time when this member joined the service. * ``: The ISO 8601 timestamp of the time when this member expires. Set to `0001-01-01T00:00:00` to disable this behaviour. * ``: A space delimited list of elements changed in an unknown place. This element also contains one of the following mutually exclusive children: 1) ``: The user handle associated with this membership. 2) ``: The e-mail address associated with this membership. 3) ``: The phone number associated with this membership. This element also contains the following five children IF the `` is set to `Passport`: * ``: Are the contents of `` hidden to the user (`true` or `false`)? * ``: This is always set to `0`. * ``: The Common ID of this member, which is a signed 64-bit integer. * ``: A space delimited list of elements changed in an unknown place. * ``: Did we search for this contact using their `` (`true` or `false`)? # Examples ## Client/Request ``` POST /abservice/abservice.asmx HTTP/1.1 SOAPAction: http://www.msn.com/webservices/AddressBook/FindMembership Cache-Control: no-cache Content-Type: text/xml; charset=utf-8 Content-Length: 1190 996CDE1E-AA53-4477-B943-2BE802EA6166 false ContactSave false t=ticket&p=profile Messenger Full false 0001-01-01T00:00:00.0000000-08:00 ``` ## Server/Response ``` HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: 4253 12.01.1111.0000 12r1;MjAyNC0xMS0yMFQxMToyMDoyNy43MTVa true contacts.example.com ecfaf8c7-e388-4571-8641-b061a0ac4bdc Allow 1 Passport Accepted false 2024-11-20T12:58:02.4680000-08:00 2024-10-10T20:38:51.0000000-08:00 0001-01-01T00:00:00 anotheruser@hotmail.com false 0 4388220788362762 false 3 Phone Accepted false 2024-11-20T12:58:02.4680000-08:00 2024-10-22T21:40:16.0000000-08:00 0001-01-01T00:00:00 15551111222 true Reverse 2 Passport Accepted false 2024-11-20T12:58:02.4680000-08:00 2024-10-10T20:38:51.0000000-08:00 0001-01-01T00:00:00 anotheruser@hotmail.com false 0 4388220788362762 false true 1 Messenger false Everyone false 2024-11-20T12:58:02.4680000-08:00 false 00000000-0000-0000-0000-000000000000 false 0 0 4294967298 example@hotmail.com 2024-10-10T20:38:51.0000000-08:00 2024-11-20T12:58:02.4680000-08:00 ```