Skip to content

Update functional.py - fixes #102#103

Merged
adorton-adobe merged 2 commits into
adobe-apiplatform:v2from
Luci2015:v2
Aug 5, 2022
Merged

Update functional.py - fixes #102#103
adorton-adobe merged 2 commits into
adobe-apiplatform:v2from
Luci2015:v2

Conversation

@Luci2015
Copy link
Copy Markdown
Contributor

@Luci2015 Luci2015 commented Aug 3, 2022

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

Copy link
Copy Markdown
Contributor

@adorton-adobe adorton-adobe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get this in a release so we can do more testing

@adorton-adobe adorton-adobe merged commit 7f1e440 into adobe-apiplatform:v2 Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants