def list(client, user_id, group_id):
    """Get security credentials of  user."""
    credentials = client.user.credentials.list(
        method="GET", userId=user_id, groupId=group_id
    )
    return credentials