Get OIDCProvider Available Service Accounts

gethttps://app.fossa.com/api/oidc/providers/{id}/available-service-accounts

This endpoint returns service accounts that can be used when creating new trust relationships for an OIDC Provider. If the user making the request has organization-level permission to manage trust relationships, then this will return all available service accounts. Otherwise, if the user only has team-level permission to manage trust relationships, then a `teamId` query parameter must be provided to filter the available service accounts to only those on the team.

Path parameters

idintegerrequired

The ID of the OIDC Provider

Query parameters

teamIdinteger

The team ID that the service account must be a member of. Required if the user making the request only has team-level permission to manage trust relationships. If the user has organization-level permission then this parameter has no effect.

pageSizeinteger

Number of service accounts to return

previnteger

ID of the last service account from the previous page for pagination

Responses

200Successfully retrieved available service accounts
resultsobject[]required

Array of available service accounts

idintegerrequired

The service account ID

usernamestringrequired

The service account username

emailstring <email>required

The service account email

pageSizeintegerrequired

Number of items requested per page

lastintegerrequired

ID of the last service account in the results array for pagination

400Bad Request
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

401Unauthorized
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

403Forbidden
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

404OIDC Provider not found
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

500Server Error
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

Try this endpoint

Build a request and run it against app.fossa.com.

Bearer

Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.

GET https://app.fossa.com/api/oidc/providers/123/available-service-accounts
curl --request GET \  --url 'https://app.fossa.com/api/oidc/providers/123/available-service-accounts' \  --header 'accept: application/json' \  --header 'authorization: Bearer YOUR_API_TOKEN'

Real request. Mutating methods can change data.

Click Try It to run a request and see the response here.
Enter a Bearer token before running this request.

Path params

idintegerrequired

The ID of the OIDC Provider

Query params

teamIdinteger

The team ID that the service account must be a member of. Required if the user making the request only has team-level permission to manage trust relationships. If the user has organization-level permission then this parameter has no effect.

pageSizeinteger

Number of service accounts to return

previnteger

ID of the last service account from the previous page for pagination