diff --git a/VERSION b/VERSION index 9789c4c..cd23180 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.14 +0.0.17 diff --git a/tableau/group.go b/tableau/group.go index 2f710d6..2ad816d 100644 --- a/tableau/group.go +++ b/tableau/group.go @@ -81,6 +81,12 @@ func (c *Client) GetGroup(groupID string) (*Group, error) { if err != nil { return nil, err } + // check if we found the group in this page + for i, group := range groupListResponse.GroupsResponse.Groups { + if group.ID == groupID { + return &groupListResponse.GroupsResponse.Groups[i], nil + } + } } return nil, fmt.Errorf("Did not find group ID %s", groupID) diff --git a/tableau/group_user.go b/tableau/group_user.go index 5430e73..f289321 100644 --- a/tableau/group_user.go +++ b/tableau/group_user.go @@ -64,6 +64,12 @@ func (c *Client) GetGroupUser(groupID, userID string) (*User, error) { if err != nil { return nil, err } + // Check this page of data for the GroupUser match + for i, user := range groupUsersListResponse.GroupUsersResponse.Users { + if user.ID == userID { + return &groupUsersListResponse.GroupUsersResponse.Users[i], nil + } + } } return nil, fmt.Errorf("Did not find user ID %s in group ID %s", userID, groupID) diff --git a/tableau/project.go b/tableau/project.go index fefc8bc..1a5125c 100644 --- a/tableau/project.go +++ b/tableau/project.go @@ -76,6 +76,12 @@ func (c *Client) GetProject(projectID string) (*Project, error) { if err != nil { return nil, err } + // Check page for project match + for i, project := range projectListResponse.ProjectsResponse.Projects { + if project.ID == projectID { + return &projectListResponse.ProjectsResponse.Projects[i], nil + } + } } return nil, fmt.Errorf("Did not find project ID %s", projectID)