diff --git a/Workbench/docker-compose.yml b/Workbench/docker-compose.yml
index 781cae7..2be4fb8 100644
--- a/Workbench/docker-compose.yml
+++ b/Workbench/docker-compose.yml
@@ -233,6 +233,9 @@ services:
- type: bind
source: ./configs-and-secrets/midpoint/httpd/host-cert.pem
target: /etc/pki/tls/certs/cachain.pem
+ - type: bind
+ source: ./midpoint_server/container_files/csv/source-hr.csv
+ target: /opt/midpoint/csv/source-hr.csv
idp:
build:
diff --git a/Workbench/midpoint_server/Dockerfile b/Workbench/midpoint_server/Dockerfile
index 33f4f5b..f818701 100644
--- a/Workbench/midpoint_server/Dockerfile
+++ b/Workbench/midpoint_server/Dockerfile
@@ -4,7 +4,7 @@ MAINTAINER info@evolveum.com
ENV MP_DIR /opt/midpoint
ENV MP_MEM_MAX 2048m
-
+RUN mkdir ${MP_DIR}/csv
VOLUME ${MP_DIR}/var
COPY container_files/mp-home/ ${MP_DIR}/var/
diff --git a/Workbench/midpoint_server/container_files/csv/source-hr.csv b/Workbench/midpoint_server/container_files/csv/source-hr.csv
new file mode 100644
index 0000000..1cddb60
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/csv/source-hr.csv
@@ -0,0 +1,5 @@
+uid,firstname,lastname,department,mail,validFrom,validTo
+hr.jsmith,John R,Smith,HR_SOR,xjsmith@example.com,2018-01-01,9999-12-31
+hr.aanderson,Alice,Anderson,HR_SOR,xaanderson@example.com,2016-03-15,9999-12-31
+hr.ejohnson,Ellen,Johnson,HR_SOR,xejohnson@example.com,2019-10-01,2019-12-31
+hr.rvasquez,Ron,Vasquez,HR_SOR,xrvasquez@example.com,2019-01-01,2019-10-31
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/archetypes/500-archetype-hr-person.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/archetypes/500-archetype-hr-person.xml
new file mode 100644
index 0000000..7d9f7bb
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/archetypes/500-archetype-hr-person.xml
@@ -0,0 +1,25 @@
+
+
+ HR
+ Non-academic person from the Human Resources system
+
+
+
+ HRs
+ Person imported from the HR CSV
+
+ fa fa-space-shuttle
+ olive
+
+
+
+
+
+ UserType
+
+
+
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/bulkActions/900-test-all-resources.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/bulkActions/900-test-all-resources.xml
index 5b22670..a26686d 100644
--- a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/bulkActions/900-test-all-resources.xml
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/bulkActions/900-test-all-resources.xml
@@ -12,6 +12,7 @@
e417225d-8a08-46f3-9b5d-624990b52386
fe805d13-481b-43ec-97d8-9d2df72cd38e
1eff65de-5bb6-483d-9edf-8cc2c2ee0233
+ 10000000-9999-9999-0000-a000ff000001
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/orgs/500-org-hr-sor.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/orgs/500-org-hr-sor.xml
new file mode 100644
index 0000000..b3ef135
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/orgs/500-org-hr-sor.xml
@@ -0,0 +1,13 @@
+
+
+
+
+ hr
+ HR SOR
+
diff --git a/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/source-hr-sor.xml b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/source-hr-sor.xml
new file mode 100644
index 0000000..682c83d
--- /dev/null
+++ b/Workbench/midpoint_server/container_files/mp-home/post-initial-objects/resources/source-hr-sor.xml
@@ -0,0 +1,331 @@
+
+
+
+
+
+ HR SOR Source
+
+
+
+
+ c:connectorType
+ com.evolveum.polygon.connector.csv.CsvConnector
+
+
+
+
+
+
+
+ /opt/midpoint/csv/source-hr.csv
+ utf-8
+ "
+ ,
+ uid
+ true
+ true
+
+
+
+
+
+
+
+ account
+ default
+
+ Default Account
+ true
+
+ ri:AccountObjectClass
+
+ [ri:uid]
+
+
+ true
+ false
+ false
+
+
+
+
+ name
+
+
+
+ Assignment of HR SOR archetype
+ strong
+
+
+ c:ArchetypeType
+ 9ea701a0-fefb-11e9-aa4a-6f55fba8896e
+
+
+
+ assignment
+
+
+
+ Assignment of HR SOR organization
+ strong
+
+
+ c:OrgType
+ 9938f92a-015e-11ea-97bc-a3be3b7d3f5f
+
+
+
+ assignment
+
+
+
+ Assignment of role-ldap-basic role
+ strong
+
+
+ c:RoleType
+ c89f31dd-8d4f-4e0a-82cb-58ff9d8c1b2f
+
+
+
+ assignment
+
+
+
+
+ [ri:department]
+ Department name
+
+
+ true
+ false
+ false
+
+
+
+
+ organizationalUnit
+
+
+ all
+
+
+
+
+
+ [ri:firstname]
+ First name
+
+
+ true
+ false
+ false
+
+
+
+
+ givenName
+
+
+
+
+ [ri:lastname]
+ Last name
+
+
+ true
+ false
+ false
+
+
+
+
+ familyName
+
+
+
+
+ $projection/attributes/ri:firstname
+ firstname
+
+
+
+
+
+ fullName
+
+
+
+
+ [ri:mail]
+ E-mail
+
+
+ true
+ false
+ false
+
+
+
+
+ emailAddress
+
+
+
+
+ [ri:validFrom]
+ Valid From
+
+ 1
+
+ true
+ false
+ false
+
+
+
+
+ [ri:validTo]
+ Valid To
+
+ 1
+
+ true
+ false
+ false
+
+
+
+
+
+
+
+ $projection/attributes/ri:validFrom
+
+
+
+
+
+
+
+
+
+ $projection/attributes/ri:validTo
+
+
+
+
+
+
+
+
+
+
+
+
+ weak
+
+
+
+
+
+
+
+
+
+
+
+
+
+ false
+
+
+ false
+
+
+ false
+
+
+ sequentialSearch
+
+
+
+
+
+ Default account
+ account
+ default
+ true
+
+
+ Correlation expression is a search query.
+ Following search query will look for users that have "name"
+ equal to the "uid" attribute of the account.
+ The correlation rule by default looks for users, so it will not match
+ any other object type.
+
+
+ name
+
+ $projection/attributes/ri:uid
+
+
+
+
+
+ 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
+
+
+
+
+
+
diff --git a/Workbench/test-resources.sh b/Workbench/test-resources.sh
index 5551e55..1a0fe2f 100755
--- a/Workbench/test-resources.sh
+++ b/Workbench/test-resources.sh
@@ -8,4 +8,5 @@ test_resource a343fc2e-3954-4034-ba1a-2b72c21e577a
test_resource e417225d-8a08-46f3-9b5d-624990b52386
test_resource fe805d13-481b-43ec-97d8-9d2df72cd38e
test_resource 1eff65de-5bb6-483d-9edf-8cc2c2ee0233
+test_resource 10000000-9999-9999-0000-a000ff000001