You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user=client.users.get("USER_GUID_HERE")
user_guid=user["guid"]
user_groups=user.groups.find()
# For every groupforgroupinclient.groups.find():
# Get group membersgroup_guid=group["guid"]
response=client.get("v1/groups/{group_guid}/members")
members_raw=response.json()
# For each member in the groupformember_rawinmembers_raw:
ifmember_raw["guid"] ==user_guid:
user_groups.append(group)
breakuser_groups
Docs issue: https://github.com/rstudio/connect/issues/28176
Proposal that can be done today:
Proposal if
Group.members
is added:Proposal if
User.groups
property andGroup.members
property are addedThe text was updated successfully, but these errors were encountered: