This documentation is for an older version of GoodData.
Go to the latest version of this article.
catalog_user.
load_and_put_declarative_user_groups
load_and_put_declarative_user_groups(layout_root_path: Path = Path.cwd())
This method combines load_declarative_user_groups and put_declarative_user_groups methods to load and set user groups stored using store_declarative_user_groups.
Parameters
name | type | description |
---|---|---|
layout_root_path | Optional[Path] | Path to the root of the layout directory.. Defaults to Path.cwd(). |
Returns
None
Example
The load and put can be done two ways.
Either by one call:
# Load and put user groups in one method
sdk.catalog_user.load_and_put_declarative_user_groups(layout_root_path = Path.cwd())
Or by two separate calls:
# Load user groups from directory
declarative_user_groups = sdk.catalog_user.load_declarative_user_groups(layout_root_path = Path.cwd())
# Put on server
sdk.catalog_user.put_declarative_user_groups(declarative_user_groups)
The result is identical.