Highlighted
Frequent Contributor.
Frequent Contributor.
148 views

removing a shared address book

Hi,

I'm trying to "unshare" an address book over soap.

Removing it in the account it was shared with was easy. I only had to do a removeItemRequest with the correct id.

I already had code to remove a shared folder, so I tried adapting that, but it did not work.

Below is an example trace, I would be grateful if anyone can tell me what is wrong or missing.

First is the get getAddressBookList Request/Response for reference.

<s:Envelope
	xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:d="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:x="http://www.w3.org/2001/XMLSchema"
	xmlns:t="http://schemas.novell.com/2005/01/GroupWise/types"
	xmlns:m="http://schemas.novell.com/2005/01/GroupWise/methods"
	xmlns:e="http://schemas.novell.com/2005/01/GroupWise/events">
	<s:Header>
		<t:session>4EQdAQrGKXrFD_dl</t:session>
		<d:gwTrace>True</d:gwTrace>
	</s:Header>
	<s:Body>
		<m:getAddressBookListRequest>
			<m:view>all shared acl</m:view>
		</m:getAddressBookListRequest>
	</s:Body>
</s:Envelope>

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope
	xmlns:x="http://www.w3.org/2001/XMLSchema"
	xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:d="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
	<s:Header/>
	<s:Body>
		<gwm:getAddressBookListResponse
			xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods"
			xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
			xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events">
			<gwm:books>
				<gwt:book
					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="gwt:AddressBook">
					<gwt:id>5E220EBE.Domain.PostOffice.104.1366368.1.1.1@53</gwt:id>
					<gwt:sid>1</gwt:sid>
					<gwt:name>Frequent Contacts</gwt:name>
					<gwt:version>4</gwt:version>
					<gwt:modified>2020-01-17T18:49:45Z</gwt:modified>
					<gwt:isPersonal>1</gwt:isPersonal>
					<gwt:isFrequentContacts>1</gwt:isFrequentContacts>
					<gwt:includeInNCC>1</gwt:includeInNCC>
				</gwt:book>
				<gwt:book>
					<gwt:id>GroupWiseSystemAddressBook@52</gwt:id>
					<gwt:name>GroupWise Address Book</gwt:name>
					<gwt:isPersonal>0</gwt:isPersonal>
					<gwt:isFrequentContacts>0</gwt:isFrequentContacts>
				</gwt:book>
				<gwt:book
					xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="gwt:SharedBook">
					<gwt:id>5E220EBE.Domain.PostOffice.104.1366368.1.3.1@53</gwt:id>
					<gwt:sid>3</gwt:sid>
					<gwt:name>x y</gwt:name>
					<gwt:version>8</gwt:version>
					<gwt:modified>2020-01-17T21:22:56Z</gwt:modified>
					<gwt:isPersonal>1</gwt:isPersonal>
					<gwt:isFrequentContacts>0</gwt:isFrequentContacts>
					<gwt:includeInNCC>1</gwt:includeInNCC>
					<gwt:acl>
						<gwt:entry>
							<gwt:displayName>a z</gwt:displayName>
							<gwt:email>x2.PostOffice.Domain@pfungstadt.de</gwt:email>
							<gwt:uuid>92A95400-0E16-0000-8964-6F6D65633434</gwt:uuid>
							<gwt:rights>
								<gwt:read>1</gwt:read>
								<gwt:edit>1</gwt:edit>
							</gwt:rights>
							<gwt:status>accepted</gwt:status>
						</gwt:entry>
					</gwt:acl>
					<gwt:isSharedByMe>1</gwt:isSharedByMe>
				</gwt:book>
			</gwm:books>
			<gwm:status>
				<gwt:code>0</gwt:code>
			</gwm:status>
		</gwm:getAddressBookListResponse>
	</s:Body>
</s:Envelope>



<s:Envelope
	xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:d="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:x="http://www.w3.org/2001/XMLSchema"
	xmlns:t="http://schemas.novell.com/2005/01/GroupWise/types"
	xmlns:m="http://schemas.novell.com/2005/01/GroupWise/methods"
	xmlns:e="http://schemas.novell.com/2005/01/GroupWise/events">
	<s:Header>
		<t:session>4EQdAQrGKXrFD_dl</t:session>
		<d:gwTrace>True</d:gwTrace>
	</s:Header>
	<s:Body>
		<m:modifyItemRequest>
			<m:id>5E220EBE.Domain.PostOffice.104.1366368.1.3.1@53</m:id>
			<m:notification>
				<t:subject>Datenmigration</t:subject>
				<t:message>Datenmigration</t:message>
			</m:notification>
			<m:updates>
				<t:delete i:type="t:SharedBook">
					<t:acl>
						<t:entry>
							<t:displayName>a z</t:displayName>
							<t:email>x2.PostOffice.Domain@pfungstadt.de</t:email>
							<t:uuid>92A95400-0E16-0000-8964-6F6D65633434</t:uuid>
							<t:rights>
								<t:read>true</t:read>
								<t:edit>true</t:edit>
							</t:rights>
						</t:entry>
					</t:acl>
				</t:delete>
			</m:updates>
		</m:modifyItemRequest>
	</s:Body>
</s:Envelope>

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope
	xmlns:x="http://www.w3.org/2001/XMLSchema"
	xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:d="http://schemas.xmlsoap.org/wsdl/soap/"
	xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
	<s:Header/>
	<s:Body>
		<gwm:modifyItemResponse
			xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods"
			xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
			xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events">
			<gwm:status>
				<gwt:code>0</gwt:code>
			</gwm:status>
		</gwm:modifyItemResponse>
	</s:Body>
</s:Envelope>

 

Regards,

Scott

Labels (1)
0 Likes
3 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: removing a shared address book

Sorry, I need a little clarification:

  Are you trying to turn the book back into a normal personal address book (not delete the book by the owner)?

  Are you trying to remove the user as a person that can see the shared book, but still keep the book as a shared book?

  Are you trying to delete the shared book from the person who you originally shared the book with (unshare the book)?

The questions are similar, but slightly different in how they are handled.

What version of POA are you using? There were problems with shared books there were not address until recently.

Thanks.

Preston

0 Likes
Highlighted
Frequent Contributor.
Frequent Contributor.

Re: removing a shared address book

  Are you trying to turn the book back into a normal personal address book (not delete the book by the owner)?

Yes, if all shares are removed.

  Are you trying to remove the user as a person that can see the shared book, but still keep the book as a shared book?

Yes, I need to do this at a minimum.

  Are you trying to delete the shared book from the person who you originally shared the book with (unshare the book)?

If I understand you correctly, this would be removing if from the person who received the share. I already can do this, I call removeItem with the books id.

 

 

I have customers using the last version of 2014 R2 we received from NTS. Most customers use 18.1.1 and a few are on 18.2.

I had also tried sending an empty acl as the update. That is how I stop sharing a shared folder entirely, not just for one user.

<acl />

 

0 Likes
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: removing a shared address book

I spent enough time to identify there are issues with the SOAP implementation with sharing address books. In doing the research, I remembered that we uncovered issues with the sharing of address books. As we got close to releasing the new GW Web application in 18.2, we disabled the sharing of address book logic because of these issues. I am currently working on another critical issue. Once that issue is resolved, the fixing of this issue will be be put back in the queue of things to fix.

Preston

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.