adobe-apiplatform/user-sync.py

Add possibility to createFederatedID in a single action with email diff from username

Luci2015 opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
currently the accounts that should have username different than email and both being an email formatted value, need a 2 step process: create with email == username, then update the username

Describe the solution you'd like
The UMAPI allows this type of JSON format:

[{"user": "username@domain.com",
"do": [
{"createFederatedID": {"email": "some_email@domain.com",
"option": "ignoreIfAlreadyExists",
"firstname": "different",
"lastname": "values",
"country": "GB" }
}
]
}]
This creates an account in Admin Console in a single call, no need to chain an 'update' action inside the 'do' statement anymore
The benefit is that you can create accounts in trustee orgs directly without the current problem of creating with username==email.

Describe alternatives you've considered
.

Additional context
user-sync.py project will also have a PR added to support this create action