This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
catalog_user.
create_or_update_user
create_or_update_user(user: CatalogUser) -> UpsertOutcome
Creates a new user or overwrites an existing user.
Parameters
| name | type | description |
|---|---|---|
| user | CatalogUser | User entity object. |
Returns
| type | description |
|---|---|
| UpsertOutcome | CREATED if the user did not exist yet, UPDATED if it did. |
Example
# Create a user
sdk.catalog_user.create_or_update_user(
CatalogUser.init(
user_id="abc",
firstname="John",
lastname="Doe",
email="john.doe@email.com",
authentication_id="xyz",
user_group_ids=["demoGroup"]
)
)