This documentation is for an older version of GoodData.
Go to the latest version of this article.
catalog_user.
put_declarative_users_user_groups
put_declarative_users_user_groups(users_user_groups: CatalogDeclarativeUsersUserGroups)
Sets all users and user groups.
Parameters
name | type | description |
---|---|---|
users | CatalogDeclarativeUsersUserGroups | Declarative users and user groups object. |
Returns
None
Example
# Load users and user groups from directory
users_and_user_groups = sdk.catalog_user.load_declarative_users_user_groups(layout_root_pat =Path.cwd())
# Do changes...
# users_and_user_groups.users.(...)
# Put on server
sdk.catalog_user.put_declarative_users_user_groups(users_and_user_groups)