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.
load_and_put_declarative_users_user_groups
load_and_put_declarative_users_user_groups(layout_root_path: Path)
Loads and sets the layouts stored using `store_declarative_users_user_groups`.
This method combines `load_declarative_users` and `put_declarative_users_user_groups` methods to load and set layouts stored using `store_declarative_users_user_groups`.
Parameters
| name | type | description |
|---|---|---|
| layout_root_path | Path | Path to the root of the layout directory.. Defaults to Path.cwd(). |
Returns
NoneExample
The load and put can be done two ways.
Either by one call:
# Load and put users and user groups in one method
sdk.catalog_user.load_and_put_declarative_users_user_groups(layout_root_path: Path = Path.cwd())Or by two separate calls:
# Load users and user groups from directory
declarative_users_and_user_groups = sdk.catalog_user.load_declarative_users_user_groups(layout_root_path: Path = Path.cwd())
# Put on server
sdk.catalog_user.put_declarative_users_user_groups(declarative_users_and_user_groups)The result is identical.