awswrangler.quicksight.list_user_groups¶
- awswrangler.quicksight.list_user_groups(user_name: str, namespace: str = 'default', account_id: Optional[str] = None, boto3_session: Optional[Session] = None) List[Dict[str, Any]] ¶
List the Amazon QuickSight groups that an Amazon QuickSight user is a member of.
- Parameters
user_name (str:) – The Amazon QuickSight user name that you want to list group memberships for.
namespace (str) – The namespace. Currently, you should set this to default .
account_id (str, optional) – If None, the account ID will be inferred from your boto3 session.
boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.
- Returns
Groups.
- Return type
List[Dict[str, Any]]
Examples
>>> import awswrangler as wr >>> groups = wr.quicksight.list_user_groups()