Code Monkey home page Code Monkey logo

Comments (3)

jelhub avatar jelhub commented on September 24, 2024

Hi,
Seems OCI requires primary to be set on one of the email addresses.
You must then include {"primary":true}

If you are calling your pluging-scim as standard inbound, the create user POST body should include:
{..., "emails":[{"primary":true,"type":"work","value":"[email protected]"}]}
This will be found in log info message Inbound = xxx

If you are calling createUser method internally, you should use:
userObj={...,"emails":{"work":{"primary":true,"type":"work","value":"[email protected]"}}}

Another thing, and maybe the problem here, is that plugin-scim only accepts {"type":"work"}
You may have to change this behavior.

Regards,
Jarle

from scimgateway.

shahidv3 avatar shahidv3 commented on September 24, 2024

Hi @jelhub

Thanks for the response.

Yes OCI requires primary to be set on the email address.
I'm calling plugin-ldap to read users/groups from on-prem AD ( users/groups are already created on this AD) and then sync to OCI IDCS. Hence not using createUser method as I'm not explicitly creating users using SCIM GW.

I assume I can update the getUsers method to show email as type of 'work' with value in addition primary boolean value as 'true' as shown in below.

"emails": [
{
"value": "[email protected]",
"type": "work",
"primary": true
}

Please let me know your thoughts.

many thanks, shahid

from scimgateway.

jelhub avatar jelhub commented on September 24, 2024

plugin-ldap do not hardcode any primary on email retrieved.
type defined in configuration: "mapTo": "emails.work.value"
You either have to update plugin-ldap or the sync logic to include the primary

Jarle

from scimgateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.