diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/100-guest-db.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/100-guest-db.xml
new file mode 100644
index 0000000..f79991c
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/100-guest-db.xml
@@ -0,0 +1,317 @@
+
+ COmanage Guests
+ Guests from COmanage via SQL
+ 0
+
+
+
+
+ c:connectorType
+ org.identityconnectors.databasetable.DatabaseTableConnector
+
+
+
+
+
+ comanage-midpoint-data
+ 5432
+ comanage_midpoint_loader
+
+ 123321
+
+ comanage_midpoint_loader
+ vwPersons
+ coperson_id
+ org.postgresql.Driver
+ jdbc:postgresql://%h:%p/%d?keepalives=1&keepalives_idle=120&useUnicode=true&characterEncoding=utf8&connectionCollation=utf8_bin
+ false
+ true
+ false
+ true
+ last_modified
+
+
+
+
+ 2022-09-24T15:43:25.804Z
+ c3d65d1eececbd38-c51aa65f935f8cf1
+
+
+
+
+
+
+
+
+
+
+
+ icfs:uid
+ icfs:name
+ icfs:name
+ icfs:name
+ __ACCOUNT__
+ true
+
+
+
+
+
+
+ 120
+ description
+
+
+
+
+
+
+ 130
+ emailaddress
+
+
+
+
+
+
+ ConnId Name
+ 110
+ __NAME__
+
+
+
+
+
+
+ 140
+ fullname
+
+
+
+
+
+
+ 150
+ givenname
+
+
+
+
+
+
+ 160
+ familyname
+
+
+
+
+
+
+ 170
+ name
+
+
+
+
+
+
+ ConnId UID
+ 100
+ read
+
+
+
+
+
+
+
+
+
+
+
+ Normal User Account
+ true
+ ri:AccountObjectClass
+
+ [ri:givenname]
+ First name
+ Firstname attribute
+
+
+ $user/givenName
+
+
+
+
+ [ri:familyname]
+ Last name
+ Lastname attribute
+
+
+ $user/familyName
+
+
+
+
+ [ri:fullname]
+ Full name
+ Fullname attribute
+
+
+ $user/fullName
+
+
+
+
+ [ri:name]
+ Guest ID
+ Guest Identifier
+
+
+ $user/name
+
+
+
+
+ extension/Guest_ID
+
+
+
+ Assignment of Guest SOR archetype
+ strong
+
+
+ c:ArchetypeType
+ 3d290ffd-35d6-40d5-9b20-964f891f569c
+
+
+
+ assignment
+
+
+
+ Assignment of Guest SOR organization
+ strong
+
+
+ c:OrgType
+ 55ced112-264c-4c77-a1bf-9e32d8a138b0
+
+
+
+ assignment
+
+
+
+ Assignment of role-ldap-basic role
+ strong
+
+
+ c:RoleType
+ c89f31dd-8d4f-4e0a-82cb-58ff9d8c1b2f
+
+
+
+ assignment
+
+
+
+
+ [ri:emailaddress]
+ Email Address
+ Email Address attribute
+
+
+ $user/emailAddress
+
+
+
+
+ [ri:description]
+ Display Name
+ Displayname attribute
+
+
+ $user/description
+
+
+
+
+
+
+
+ 2022-09-24T15:43:25.798Z
+ 20403063cb3af9c1-b86b2ecdab69ecca
+
+
+
+
+
+
+
+ true
+
+
+
+
+ connector
+
+
+
+ false
+
+
+
+
+
+ ri:AccountObjectClass
+ true
+
+
+ c:name
+
+
+ declare namespace icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3";
+ $account/attributes/ri:name
+
+
+
+
+ Correlation expression is a search query.
+ Following search query will look for users that have "name"
+ equal to the "name" attribute of the account. Simply speaking,
+ it will look for match in usernames in the IDM and the resource.
+ The correlation rule always looks for users, so it will not match
+ any other object type.
+
+
+
+ deleted
+
+ http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlinkAccount
+
+
+
+ unlinked
+
+ http://midpoint.evolveum.com/xml/ns/public/model/action-3#linkAccount
+
+
+
+ linked
+
+
+ http://midpoint.evolveum.com/xml/ns/public/model/action-3#modifyUser
+
+
+
+ unmatched
+
+
+ http://midpoint.evolveum.com/xml/ns/public/model/action-3#addUser
+
+
+
+
+
+
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/100-guest-ldap.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/100-guest-ldap.xml
deleted file mode 100644
index 15bd58a..0000000
--- a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/100-guest-ldap.xml
+++ /dev/null
@@ -1,249 +0,0 @@
-
- Guest LDAP
- LDAP guests provisioned by COmanage
-
-
-
- c:connectorType
- com.evolveum.polygon.connector.ldap.LdapConnector
-
-
-
-
-
- false
- false
- false
-
-
- directory
- 389
- cn=Directory Manager
-
- password
-
- nsUniqueId
- spr
- ou=Guests,dc=internet2,dc=edu
- spr
- memberOf
- createTimestamp
- true
-
-
-
-
-
- ri:inetOrgPerson
- ri:eduPerson
- ri:organizationalPerson
- ri:person
- ri:groupOfUniqueNames
- ri:groupOfNames
- ri:organizationalUnit
-
-
-
-
- account
- default
- Normal Account
- true
- ri:inetOrgPerson
- ri:eduPerson
-
- ri:dn
- Distinguished Name
-
- 0
-
- true
- true
- true
-
-
- mr:stringIgnoreCase
-
-
- ri:sn
- Surname
-
- 0
-
-
-
- familyName
-
-
-
-
- $projection/attributes/ri:givenName
- givenname
-
-
-
-
-
- fullName
-
-
-
-
- ri:givenName
- Given Name
-
-
- $c:user/c:givenName
-
-
-
-
- ri:mail
-
-
- $c:user/c:emailAddress
-
-
-
-
- ri:uid
-
-
- extension/Guest_ID
-
-
-
- Assignment of Guest SOR archetype
- strong
-
-
- c:ArchetypeType
- 3d290ffd-35d6-40d5-9b20-964f891f569c
-
-
-
- assignment
-
-
-
- Assignment of Guest SOR organization
- strong
-
-
- c:OrgType
- 55ced112-264c-4c77-a1bf-9e32d8a138b0
-
-
-
- assignment
-
-
-
- Assignment of role-ldap-basic role
- strong
-
-
- c:RoleType
- c89f31dd-8d4f-4e0a-82cb-58ff9d8c1b2f
-
-
-
- assignment
-
-
-
-
- 5
-
-
-
-
- http://prism.evolveum.com/xml/ns/public/matching-rule-3#stringIgnoreCase
- attributes/ri:dn
- cn=admin,dc=internet2,dc=edu
-
-
-
-
-
-
-
- weak
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- weak
-
-
-
-
-
-
-
-
-
-
- true
-
-
- c:extension/Guest_ID
-
-
- declare namespace ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3";
- $account/attributes/ri:uid
-
-
-
-
- Correlation expression is a search query.
- Following search query will look for users that have "name"
- equal to the "eduPersonPrincipalName" attribute of the account. Simply speaking,
- it will look for a match in usernames in the IDM and the resource.
- The correlation rule always looks for users, so it will not match
- any other object type.
-
-
-
- linked
- true
-
-
- deleted
- true
-
- http://midpoint.evolveum.com/xml/ns/public/model/action-3#unlink
-
-
-
- unlinked
- true
-
- http://midpoint.evolveum.com/xml/ns/public/model/action-3#link
-
-
-
- unmatched
- true
-
- http://midpoint.evolveum.com/xml/ns/public/model/action-3#addFocus
-
-
-
-
-
- true
-
-
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/tasks/300-task-guest-ldap-import.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/tasks/300-task-import-guests-sql.xml
similarity index 85%
rename from Workbench/midpoint_server/container_files/mp-home/post-initial-objects/tasks/300-task-guest-ldap-import.xml
rename to Workbench/midpoint_server/container_files/mp-home/post-initial-objects/tasks/300-task-import-guests-sql.xml
index c85e8a0..015a0bc 100644
--- a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/tasks/300-task-guest-ldap-import.xml
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/tasks/300-task-import-guests-sql.xml
@@ -6,7 +6,7 @@
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
oid="9ddfc0ff-6293-4f34-8eb7-5a049c21480f">
- Import from Guest LDAP
+ Import Guests from COmanage SQL
@@ -20,18 +20,19 @@
- df940655-2167-455d-a735-a5e8c234e289
+ fe3c15a4-71be-4aac-8bc9-65a61b6e8d77
runnable
ImportingAccounts
-
+ type="c:ResourceType">
recurring
60
loose
+