Retrieve metadata for a specific OAuth integration by its globally unique identifier.
This is a convenience function that calls findOAuthIntegration(guid = guid).
getOAuthIntegration(guid)A list containing the integration metadata:
The integration type (e.g., "custom").
The integration name.
The display name (may be NULL).
The OAuth client ID.
The authorization URL.
The token URL.
A character vector of OAuth scopes.
The OAuth issuer URL.
Boolean indicating if currently authenticated.
The globally unique identifier for this integration.
Returns NULL if no integration with the specified GUID is found.
This function requires Posit Workbench version 2026.01.0 or later. It works in any IDE running within a Posit Workbench session (not just RStudio).
if (FALSE) { # \dontrun{
# Get a specific integration by GUID
integration <- getOAuthIntegration("4c1cfecb-1927-4f19-bc2f-d8ac261364e0")
if (!is.null(integration)) {
cat("Found integration:", integration$name, "\n")
cat("Authenticated:", integration$authenticated, "\n")
# Get credentials if authenticated
if (integration$authenticated) {
creds <- getOAuthCredentials(audience = integration$guid)
}
}
} # }