adobe-apiplatform / umapi-client.py

Python client for the User Management API (UMAPI) from Adobe
https://developer.adobe.com/umapi/
MIT License
12 stars 19 forks source link

Update functional.py - fixes #102 #103

Closed Luci2015 closed 2 years ago

Luci2015 commented 2 years ago

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