7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * Copyright (c) 2014 ForgeRock AS. All rights reserved.
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * The contents of this file are subject to the terms
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * of the Common Development and Distribution License
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * (the License). You may not use this file except in
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * compliance with the License.
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * You can obtain a copy of the License at
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * See the License for the specific language governing
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * permission and limitations under the License.
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * When distributing Covered Code, include this CDDL
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * Header Notice in each file and include the License file
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * If applicable, add the following below the CDDL Header,
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * with the fields enclosed by brackets [] replaced by
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * your own identifying information:
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel * "Portions Copyrighted [year] [name of copyright owner]"
5b2431f08066ce8301da5def5496903740abbfa9Mark Craig---------------------------------------
5b2431f08066ce8301da5def5496903740abbfa9Mark CraigThis sample demonstrates using scripting to expose users according to a
17ac9740889daa3a239caefc6fb8615c60b5a6d1Lana Frosthttp://openidm.forgerock.org/doc/bootstrap/samples-guide/#more-sample-7
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake FeaselNote that this sample does not work with the OpenIDM UI, due to the fact
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feaselthat the managed/user schema does not match the default.
4b4c3a2028eea921136be5b4717c69c074b4982eLana 2. Run reconciliation to copy the user from the XML file under data/ to
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel the OpenIDM internal repository. The scripts configured within sync.json
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel transform the user data to fit the SCIM-like schema.
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel $ curl -k -H "Content-type: application/json" -u "openidm-admin:openidm-admin" -X POST "https://localhost:8443/openidm/recon?_action=recon&mapping=systemXmlfileAccounts_managedUser"
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel $ curl -k -u "openidm-admin:openidm-admin" -X GET "https://localhost:8443/openidm/managed/user/DDOE1?_prettyPrint=true"
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "phoneNumbers" : [ {
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "emails" : [ {
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "primary" : true
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "lastModified" : "Fri Apr 18 2014 15:15:33 GMT-0700 (PDT)",
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "created" : "Fri Apr 18 2014 15:15:33 GMT-0700 (PDT)"
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "photos" : [ {
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "value" : "https://photos.example.com/profilephoto/72930000000Ccne/F"
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "value" : "https://photos.example.com/profilephoto/72930000000Ccne/T"
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "profileUrl" : "https://login.example.com/DDOE1",
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "addresses" : [ {
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "formatted" : "100 Universal City Plaza\nHollywood, CA 91608 USA",
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "formatted" : "222 Universal City Plaza\nHollywood, CA 91622 USA",
7d83b6a03bd7b63f2eb6404d6cc1e4c074391ea7Jake Feasel "groups" : [ {