Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

direct_association_only argument causes error #51

@shawnconnor

Description

@shawnconnor

Both the role_users() function in the roleApi, and the user_roles() function in the userApi, offer a "direct_association_only" argument so that you can find only roles that have been assigned directly to a user (i.e., not indirectly via Group membership). However, setting this argument (to TRUE, True, true, 1, or FALSE) causes the following error:

Error in f(init, x[[i]]) : is.request(y) is not TRUE

So this call fails:

roleApi$role_users(config = sdk$oauthHeader,
role_id = "4",
direct_association_only = "TRUE")$content

But this succeeds:

roleApi$role_users(config = sdk$oauthHeader,
role_id = "4")$content

traceback() shows the following, which suggests the issue is maybe in httr and/or curl?

8: stop(simpleError(msg, call = if (p <- sys.parent(1L)) sys.call(p)))
7: stopifnot(is.request(x), is.request(y))
6: f(init, x[[i]])
5: Reduce(request_combine, extra, init = request())
4: request_build("GET", hu$url, as.request(config), ...)
3: httr::GET(url, queryParams, headers, ...)
2: self$apiClient$callApi(url = paste0(self$apiClient$basePath,
urlPath), method = "GET", queryParams = queryParams, headerParams = headerParams,
body = body, ...)
1: roleApi$role_users(config = sdk$oauthHeader, role_id = "4",
direct_association_only = "TRUE")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions