catalog_user.

load_and_put_declarative_users

load_and_put_declarative_users(layout_root_path: Path)

Loads and sets the layouts stored using `store_declarative_users`.

This method combines `load_declarative_users` and `put_declarative_users` methods to load and set layouts stored using `store_declarative_users`.

Parameters

nametypedescription
layout_root_pathPathPath 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 users in one method
sdk.catalog_user.load_and_put_declarative_users(layout_root_path: Path = Path.cwd())

Or by two separate calls:

# Load users from directory
declarative_users = sdk.catalog_user.load_declarative_users(layout_root_path: Path = Path.cwd())
# Put on server
sdk.catalog_user.put_declarative_users(declarative_users)

The result is identical.