<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>I'm getting an set of two exceptions, when adding a second group to a user to be synced via the Google connector. In my configuration, I maintain a role for each Google group, and each of those groups have a meta-role which induces the creation of groups
 and then memberships as a second order inducements. Membership is configured as an association on the accountObjectClass. I'll attach configs with the details, but that's a simple description of it. Many thanks to Oleksandr Nekriach for an example on which
 my Google resource config is based.<br>
</p>
<p>The first exception which happens appears to be caused when the connector, after successfully creating the membership I want it to create, then attempts to create a group with the name of the user, since an object (user) already exists with that name in
 Google, Google throws a 409. The connector does not attempt to create a group with the name of the user when a first group membership is added to the user, only when adding additional group memberships. The second exception happens when midPoint tries to resolve
 the AlreadyExistsException in its standard way, by doing a search for existing groups with that name (again the user's name), but this results in the second exception, an UnsupportedOperationException, the search is getting the attribute __NAME__ and the connector
 code is designed to throw an exception as "Only EqualsFilter(['domain','customer','userKey']) and ContainsFilter('members') are supported". Ironically the value of the user __NAME__ passed in is a valid userKey, but it doesn't seem to be tagged as one, and
 I haven't found a way to configure what would get tagged as a userKey.</p>
<p>I'll put more detailed debug / traces below, but the basic difference in operations between a first group membership being added, and the second one being added are as follows:</p>
<p>First group addition:</p>
<ul>
<li>User gets created if they don't exist on the resource, UID is returned to midPoint, in the below log the user is created on this first membership addition.<br>
</li><li>MidPoint sends a update operation for the group and membership<br>
</li><li>Group gets searched for to verify existence, for the below log, the group is found and therefore not created.<br>
</li><li>Group membership is listed showing lack of this user in membership.</li><li>Update operation adds membership to group.<br>
</li><li>Group membership is listed again, showing user added.</li><li>MidPoint updates shadow information.</li></ul>
<p>Second group addition:</p>
<ul>
<li>User gets created if they don't exist on the resource,  in the below log the user is unchanged on second  membership addition.</li><li>midPoint notes "Shadow exists"<br>
</li><li>MidPoint sends a update operation for the group and membership<br>
</li><li>Group gets searched for to verify existence, for the below log, the group is found and therefore not created.<br>
</li><li>Group membership is listed showing lack of this user in membership.</li><li>Update operation adds membership to group.<br>
</li><li>Group membership is listed again, showing user added.</li><li>MidPoint updates shadow information.</li><li>Midpoint sends an add operation for the a group named the same as the user.</li><li>Google returns a 409 error, duplicate, entity already exists.</li><li>Connector throws a AlreadyExistsException</li><li>Connector issues a search for objectClass __GROUP__ with __NAME__ set to the users name</li><li>Connector throws second exception (UnsupportedOperationException) as __NAME__ isn't supported by the filter for groups.</li></ul>
<p><br>
</p>
<p>Thanks,</p>
<p>Ethan<br>
</p>
<p>Detailed debug / trace for first group addition:</p>
<p>2020-01-29 20:17:23,718 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING ADD operation on resource
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a><br>
 ADD object:<br>
shadow: (null, ShadowType)<br>
    intent: default<br>
    kind: ACCOUNT<br>
    objectClass: {...resource/instance-3}AccountObjectClass<br>
    resourceRef: oid=df40c130-2b46-4f5c-8db1-c8cd8e059c62(ResourceType)<br>
    attributes:<br>
        name: <a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">
fanderson@test.unc.edu</a><br>
        givenName: Fred<br>
        familyName: Anderson<br>
    association:<br>
      id=null<br>
        name: Group<br>
        shadowRef: oid=78a10b33-f71e-49d9-b7f7-9bc60f0d57f0(ShadowType)<br>
        identifiers:<br>
            uid: 01ci93xb1fcb9aw<br>
            name: <a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">
its-ethan-test0@test.unc.edu</a><br>
    iteration: 0<br>
    iterationToken:<br>
    credentials:<br>
        password:<br>
            value: ProtectedStringType([encrypted data])<br>
            metadata:<br>
                createChannel: <a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">
http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a><br>
                createTimestamp: 2020-01-29T20:17:23.646Z<br>
                creatorRef: oid=ad43806c-6d25-42af-806e-48a2bfa0772b(UserType)('ekromhout')[default]<br>
    metadata:<br>
        requestTimestamp: 2020-01-29T20:17:23.514Z<br>
        requestorRef: oid=ad43806c-6d25-42af-806e-48a2bfa0772b(UserType)('ekromhout')[default]<br>
        createChannel: <a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">
http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a><br>
        createTimestamp: 2020-01-29T20:17:23.715Z<br>
        creatorRef: oid=ad43806c-6d25-42af-806e-48a2bfa0772b(UserType)('ekromhout')[default]<br>
 additional operations:<br>
    []<br>
2020-01-29 20:17:23,721 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.CreateApiOp): method: create msg:instance='google-apps' Enter: create(ObjectClass: __ACCOUNT__, [Attribute: {Name=__PASSWORD__, Value=[org.identityconnectors.common.security.GuardedString@1f3ddddb]},
 Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}, Attribute: {Name=givenName, Value=[Fred]}, Attribute: {Name=familyName, Value=[Anderson]}], OperationOptions: {})<br>
2020-01-29 20:17:23,721 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.CreateOp): method: create msg:instance='google-apps' Enter: create(ObjectClass: __ACCOUNT__, [Attribute: {Name=__PASSWORD__, Value=[org.identityconnectors.common.security.GuardedString@1f3ddddb]},
 Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}, Attribute: {Name=givenName, Value=[Fred]}, Attribute: {Name=familyName, Value=[Anderson]}], OperationOptions: {})<br>
2020-01-29 20:17:25,259 [] [pool-5-thread-133] TRACE (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:New User is created:106482002799746251566<br>
2020-01-29 20:17:25,259 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.CreateOp): method: create msg:instance='google-apps' Return: Attribute: {Name=__UID__, Value=[106482002799746251566], Revision="enlFCt4L0-k8PoIKzRNl5h_fsrc/15rT99s7esTv4yZeGHafndfCvtM"}</p>
<p>2020-01-29 20:17:25,260 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING ADD successful, returned attributes:<br>
{RA({.../connector/icf-1/resource-schema-3}uid):[PPV(String:106482002799746251566)],RA({.../resource/instance-3}givenName):[PPV(String:Fred)],RA({.../resource/instance-3}familyName):[PPV(String:Anderson)],RA({.../connector/icf-1/resource-schema-3}name):[PPV(<a class="moz-txt-link-abbreviated" href="mailto:String:fanderson@test.unc.edu">String:fanderson@test.unc.edu</a>)]}<br>
2020-01-29 20:17:25,261 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING MODIFY operation on
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a><br>
 MODIFY object, object class ENTITLEMENT:Group, identified by:<br>
  {<br>
    name: <a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">
its-ethan-test0@test.unc.edu</a><br>
    uid: 01ci93xb1fcb9aw<br>
  }<br>
 changes:<br>
  [<br>
    PropertyModificationOperation:<br>
      delta:<br>
        attributes/__MEMBERS__<br>
          ADD: <a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">
fanderson@test.unc.edu</a><br>
      matchingRule: {<a class="moz-txt-link-freetext" href="http://prism.evolveum.com/xml/ns/public/matching-rule-3">http://prism.evolveum.com/xml/ns/public/matching-rule-3</a>}stringIgnoreCase<br>
  ]<br>
2020-01-29 20:17:25,262 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.UpdateApiOp): method: addAttributeValues msg:instance='google-apps' Enter: addAttributeValues(ObjectClass: __GROUP__, Attribute: {Name=__UID__, Value=[01ci93xb1fcb9aw],
 NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}}, [Attribute: {Name=__MEMBERS__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}],
 OperationOptions: {})<br>
2020-01-29 20:17:25,263 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.SearchOp): method: executeQuery msg:instance='google-apps' Enter: executeQuery(ObjectClass: __GROUP__, EQUALS: Attribute: {Name=__UID__, Value=[01ci93xb1fcb9aw],
 NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}}, org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1@7c6f9fff)<br>
2020-01-29 20:17:25,270 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:executeQuery() - objectClass: ObjectClass: __GROUP__, uid: 01ci93xb1fcb9aw<br>
2020-01-29 20:17:25,525 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:listAllMembers() - finished in 162 ms<br>
2020-01-29 20:17:25,525 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.common.objects.ResultsHandler): method: handle msg:instance='google-apps' Enter: handle({Uid=Attribute: {Name=__UID__, Value=[01ci93xb1fcb9aw], Revision="enlFCt4L0-k8PoIKzRNl5h_fsrc/oyPTKfAMIoHkk4mhCT3-Fu4Ju_M"},
 ObjectClass=ObjectClass: __GROUP__, Attributes=[Attribute: {Name=__MEMBERS__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:banderson@test.unc.edu">banderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:canderson@test.unc.edu">canderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:kromhout@test.unc.edu">kromhout@test.unc.edu</a>]}, Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}, Attribute:
 {Name=__UID__, Value=[01ci93xb1fcb9aw], Revision="enlFCt4L0-k8PoIKzRNl5h_fsrc/oyPTKfAMIoHkk4mhCT3-Fu4Ju_M"}], Name=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}})<br>
2020-01-29 20:17:25,526 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.common.objects.ResultsHandler): method: handle msg:instance='google-apps' Return: false<br>
2020-01-29 20:17:25,526 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:executeQuery() - finished in 256 ms<br>
2020-01-29 20:17:25,526 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.SearchOp): method: executeQuery msg:instance='google-apps' Return<br>
2020-01-29 20:17:25,526 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.UpdateOp): method: update msg:instance='google-apps' Enter: update(ObjectClass: __GROUP__, Attribute: {Name=__UID__, Value=[01ci93xb1fcb9aw], NameHint=Attribute:
 {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}}, [Attribute: {Name=__MEMBERS__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:banderson@test.unc.edu">banderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:canderson@test.unc.edu">canderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:kromhout@test.unc.edu">kromhout@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}], OperationOptions: {})<br>
2020-01-29 20:17:25,649 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:listAllMembers() - finished in 123 ms<br>
2020-01-29 20:17:26,659 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.UpdateOp): method: update msg:instance='google-apps' Return: Attribute: {Name=__UID__, Value=[01ci93xb1fcb9aw], NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}}<br>
2020-01-29 20:17:26,659 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.UpdateApiOp): method: addAttributeValues msg:Return: Attribute: {Name=__UID__, Value=[01ci93xb1fcb9aw], NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:its-ethan-test0@test.unc.edu">its-ethan-test0@test.unc.edu</a>]}}<br>
2020-01-29 20:17:26,659 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING MODIFY successful, inProgress=false, side-effect changes {<br>
2020-01-29 20:17:26,659 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ShadowCache): ADD shadow:null(null): resource operation executed, operation state: COMPLETED, result: status=SUCCESS: shadow:null(null)<br>
2020-01-29 20:17:26,693 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ShadowCache): MODIFY shadow:bed3186d-ee5c-475b-956d-4249a223163f(<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>):
 repository-only modification<br>
2020-01-29 20:17:26,693 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.shadowmanager.ShadowManager): Metadata not found, adding minimal metadata. Modifications:<br>
  [<br>
    synchronizationSituationDescription<br>
      ADD: SyncDesc(LINKED,2020-01-29T20:17:26.693Z,<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user,full">http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user,full</a>)<br>
    synchronizationTimestamp<br>
      REPLACE: 2020-01-29T20:17:26.693Z<br>
    fullSynchronizationTimestamp<br>
      REPLACE: 2020-01-29T20:17:26.693Z<br>
    synchronizationSituation<br>
      REPLACE: LINKED<br>
  ]<br>
2020-01-29 20:17:43,090 [PROVISIONING] [ajp-nio-9090-exec-1] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceCache): HIT(returning clone) for
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a><br>
</p>
<p>Detailed debug / trace for second group addition:</p>
<p>2020-01-29 20:17:59,181 [MODEL] [pool-5-thread-133] INFO (com.evolveum.midpoint.model.common.mapping.MappingImpl): Mapping trace:<br>
---[ MAPPING  in outbound mapping for {.../connector/icf-1/resource-schema-3}name in
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a>]---------------------------<br>
Strength: NORMAL<br>
Source name:<br>
  old: PP({.../common/common-3}name):[PPV(<a class="moz-txt-link-abbreviated" href="mailto:PolyString:fanderson@test.unc.edu">PolyString:fanderson@test.unc.edu</a>)]<br>
  delta: null<br>
  new: PP({.../common/common-3}name):[PPV(<a class="moz-txt-link-abbreviated" href="mailto:PolyString:fanderson@test.unc.edu">PolyString:fanderson@test.unc.edu</a>)]<br>
Source domain:<br>
  old: PP({.../connector/icf-1/bundle/com.evolveum.polygon.connector-googleapps/com.evolveum.polygon.connector.googleapps.GoogleAppsConnector}domain):[PPV(String:test.unc.edu)]<br>
  delta: null<br>
  new: PP({.../connector/icf-1/bundle/com.evolveum.polygon.connector-googleapps/com.evolveum.polygon.connector.googleapps.GoogleAppsConnector}domain):[PPV(String:test.unc.edu)]<br>
Target: rRAD:{.../connector/icf-1/resource-schema-3}name {xsd:}string[1,1],RAM framework=__NAME__,Disp,OUT,IN:MODEL<br>
Expression: script: ScriptExpression( return name.toString().toLowerCase() )<br>
Condition: true -> true<br>
Result: unchanged: <a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">
fanderson@test.unc.edu</a><br>
------------------------------------------------------<br>
2020-01-29 20:17:59,187 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceCache): HIT(returning clone) for
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a><br>
2020-01-29 20:17:59,215 [PROVISIONING] [pool-5-thread-133] INFO (com.evolveum.midpoint.provisioning.impl.ShadowCache): Shadow exists:<br>
2020-01-29 20:17:59,216 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING MODIFY operation on
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a><br>
 MODIFY object, object class ENTITLEMENT:Group, identified by:<br>
  {<br>
    uid: 01tuee7443vltzf<br>
    name: <a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">
test-midpoint-role@test.unc.edu</a><br>
  }<br>
 changes:<br>
  [<br>
    PropertyModificationOperation:<br>
      delta:<br>
        attributes/__MEMBERS__<br>
          ADD: <a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">
fanderson@test.unc.edu</a><br>
      matchingRule: {<a class="moz-txt-link-freetext" href="http://prism.evolveum.com/xml/ns/public/matching-rule-3">http://prism.evolveum.com/xml/ns/public/matching-rule-3</a>}stringIgnoreCase<br>
  ]<br>
2020-01-29 20:17:59,217 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.UpdateApiOp): method: addAttributeValues msg:instance='google-apps' Enter: addAttributeValues(ObjectClass: __GROUP__, Attribute: {Name=__UID__, Value=[01tuee7443vltzf],
 NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}}, [Attribute: {Name=__MEMBERS__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}],
 OperationOptions: {})<br>
2020-01-29 20:17:59,217 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.SearchOp): method: executeQuery msg:instance='google-apps' Enter: executeQuery(ObjectClass: __GROUP__, EQUALS: Attribute: {Name=__UID__, Value=[01tuee7443vltzf],
 NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}}, org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1@700e414e)<br>
2020-01-29 20:17:59,217 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:executeQuery() - objectClass: ObjectClass: __GROUP__, uid: 01tuee7443vltzf<br>
2020-01-29 20:17:59,447 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:listAllMembers() - finished in 129 ms<br>
2020-01-29 20:17:59,447 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.common.objects.ResultsHandler): method: handle msg:instance='google-apps' Enter: handle({Uid=Attribute: {Name=__UID__, Value=[01tuee7443vltzf], Revision="enlFCt4L0-k8PoIKzRNl5h_fsrc/Eapaek_efnCBIKGBTnR_3x-UJa0"},
 ObjectClass=ObjectClass: __GROUP__, Attributes=[Attribute: {Name=__MEMBERS__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:banderson@test.unc.edu">banderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:canderson@test.unc.edu">canderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:eanderson@test.unc.edu">eanderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:kromhout@test.unc.edu">kromhout@test.unc.edu</a>]}, Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}, Attribute:
 {Name=__UID__, Value=[01tuee7443vltzf], Revision="enlFCt4L0-k8PoIKzRNl5h_fsrc/Eapaek_efnCBIKGBTnR_3x-UJa0"}], Name=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}})<br>
2020-01-29 20:17:59,447 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.common.objects.ResultsHandler): method: handle msg:instance='google-apps' Return: false<br>
2020-01-29 20:17:59,447 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:executeQuery() - finished in 230 ms<br>
2020-01-29 20:17:59,447 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.SearchOp): method: executeQuery msg:instance='google-apps' Return<br>
2020-01-29 20:17:59,447 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.UpdateOp): method: update msg:instance='google-apps' Enter: update(ObjectClass: __GROUP__, Attribute: {Name=__UID__, Value=[01tuee7443vltzf], NameHint=Attribute:
 {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}}, [Attribute: {Name=__MEMBERS__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:banderson@test.unc.edu">banderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:canderson@test.unc.edu">canderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:eanderson@test.unc.edu">eanderson@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:kromhout@test.unc.edu">kromhout@test.unc.edu</a>,
<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}], OperationOptions: {})<br>
2020-01-29 20:17:59,570 [] [pool-5-thread-133] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:listAllMembers() - finished in 123 ms<br>
2020-01-29 20:18:00,405 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.UpdateOp): method: update msg:instance='google-apps' Return: Attribute: {Name=__UID__, Value=[01tuee7443vltzf], NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}}<br>
2020-01-29 20:18:00,405 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.UpdateApiOp): method: addAttributeValues msg:Return: Attribute: {Name=__UID__, Value=[01tuee7443vltzf], NameHint=Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:test-midpoint-role@test.unc.edu">test-midpoint-role@test.unc.edu</a>]}}<br>
2020-01-29 20:18:00,405 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING MODIFY successful, inProgress=false, side-effect changes {<br>
}<br>
2020-01-29 20:18:00,405 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ShadowCache): MODIFY shadow:bed3186d-ee5c-475b-956d-4249a223163f(<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>):
 resource operation executed, operation state: COMPLETED, result: status=SUCCESS: []<br>
2020-01-29 20:18:00,540 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ShadowCache): MODIFY shadow:bed3186d-ee5c-475b-956d-4249a223163f(<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>):
 repository-only modification<br>
2020-01-29 20:18:00,541 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.shadowmanager.ShadowManager): Metadata not found, adding minimal metadata. Modifications:<br>
  [<br>
    synchronizationSituationDescription<br>
      ADD: SyncDesc(LINKED,2020-01-29T20:18:00.540Z,<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a>)<br>
      DELETE: SyncDesc(LINKED,2020-01-29T20:17:26.693Z,<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user,full">http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user,full</a>)<br>
    synchronizationTimestamp<br>
      REPLACE: 2020-01-29T20:18:00.540Z<br>
    synchronizationSituation<br>
      REPLACE: LINKED<br>
  ]<br>
2020-01-29 20:18:00,556 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ResourceObjectConverter): PROVISIONING ADD operation on resource
<a class="moz-txt-link-freetext" href="resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)">
resource:df40c130-2b46-4f5c-8db1-c8cd8e059c62(google-apps)</a><br>
 ADD object:<br>
shadow: (null, ShadowType)<br>
    intent: Group<br>
    kind: ENTITLEMENT<br>
    objectClass: {...resource/instance-3}GroupObjectClass<br>
    resourceRef: oid=df40c130-2b46-4f5c-8db1-c8cd8e059c62(ResourceType)<br>
    attributes:<br>
        name: <a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">
fanderson@test.unc.edu</a><br>
    iteration: 0<br>
    iterationToken:<br>
    metadata:<br>
        requestTimestamp: 2020-01-29T20:17:59.014Z<br>
        requestorRef: oid=ad43806c-6d25-42af-806e-48a2bfa0772b(UserType)('ekromhout')[default]<br>
        createChannel: <a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user">
http://midpoint.evolveum.com/xml/ns/public/gui/channels-3#user</a><br>
        createTimestamp: 2020-01-29T20:18:00.555Z<br>
        creatorRef: oid=ad43806c-6d25-42af-806e-48a2bfa0772b(UserType)('ekromhout')[default]<br>
 additional operations:<br>
    []<br>
2020-01-29 20:18:00,556 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.CreateApiOp): method: create msg:instance='google-apps' Enter: create(ObjectClass: __GROUP__, [Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}],
 OperationOptions: {})<br>
2020-01-29 20:18:00,556 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.CreateOp): method: create msg:instance='google-apps' Enter: create(ObjectClass: __GROUP__, [Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}],
 OperationOptions: {})<br>
2020-01-29 20:18:00,628 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.spi.operations.CreateOp): method: [create, instance='google-apps' Exception: ] msg:{}<br>
org.identityconnectors.framework.common.exceptions.AlreadyExistsException: 409 Conflict<br>
{<br>
  "code" : 409,<br>
  "errors" : [ {<br>
    "domain" : "global",<br>
    "message" : "Entity already exists.",<br>
    "reason" : "duplicate"<br>
  } ],<br>
  "message" : "Entity already exists."<br>
}<br>
        at com.evolveum.polygon.connector.googleapps.RequestResultHandler.handleDuplicate(RequestResultHandler.java:49)----<br>
</p>
<p>------Skipping some stack  trace informatino-----------</p>
<p> (class org.identityconnectors.framework.common.exceptions.AlreadyExistsException)<br>
2020-01-29 20:18:00,629 [PROVISIONING] [pool-5-thread-133] DEBUG (com.evolveum.midpoint.provisioning.impl.ShadowCache): Handling provisioning ADD exception class com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException: Object already exists on the
 resource: org.identityconnectors.framework.common.exceptions.AlreadyExistsException(409 Conflict?{?  "code" : 409,?  "errors" : [ {?    "domain" : "global",?    "message" : "Entity already exists.",?    "reason" : "duplicate"?  } ],?  "message" : "Entity already
 exists."?})->com.google.api.client.googleapis.json.GoogleJsonResponseException(409 Conflict?{?  "code" : 409,?  "errors" : [ {?    "domain" : "global",?    "message" : "Entity already exists.",?    "reason" : "duplicate"?  } ],?  "message" : "Entity already
 exists."?})<br>
2020-01-29 20:18:00,636 [] [pool-5-thread-133] TRACE (org.identityconnectors.framework.api.operations.SearchApiOp): method: search msg:instance='google-apps' Enter: search(ObjectClass: __GROUP__, EQUALS: Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]},
 (midPoint searching result handler), OperationOptions: {ALLOW_PARTIAL_ATTRIBUTE_VALUES:true,ATTRS_TO_GET:[__DESCRIPTION__,__MEMBERS__,nonEditableAliases,directMembersCount,adminCreated,aliases,__NAME__,name,__UID__,__PASSWORD__]})<br>
2020-01-29 20:18:00,637 [] [Thread-161] TRACE (org.identityconnectors.framework.spi.operations.SearchOp): method: executeQuery msg:instance='google-apps' Enter: executeQuery(ObjectClass: __GROUP__, EQUALS: Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]},
 org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1@41056fb)<br>
2020-01-29 20:18:00,637 [] [Thread-161] DEBUG (com.evolveum.polygon.connector.googleapps.GoogleAppsConnector): method: null msg:executeQuery() - objectClass: ObjectClass: __GROUP__, uid: null<br>
2020-01-29 20:18:00,638 [] [Thread-161] TRACE (org.identityconnectors.framework.spi.operations.SearchOp): method: [executeQuery, instance='google-apps' Exception: ] msg:{}<br>
java.lang.UnsupportedOperationException: filter is:EQUALS: Attribute: {Name=__NAME__, Value=[<a class="moz-txt-link-abbreviated" href="mailto:fanderson@test.unc.edu">fanderson@test.unc.edu</a>]}Only EqualsFilter(['domain','customer','userKey']) and ContainsFilter('members')
 are supported<br>
        at com.evolveum.polygon.connector.googleapps.GroupHandler.getException(GroupHandler.java:78)</p>
<p>---------Several more stack traces follow, but I don't think those details are relavent, can certainly share if helpful.-----------</p>
<p><br>
</p>
<ul>
</ul>
</body>
</html>