Count Grants For User By App
CountGrantsForUserByApp returns, for a user, the number of grants held per application. Use it to size or filter an access graph before calling SearchGraph: counts are computed directly from grant bindings and are an upper bound on what SearchGraph will render for the same user and app filter (SearchGraph applies additional filters that this count does not).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.
Body
Response
CountGrantsForUserByApp response. Grant counts are computed directly from grant bindings and are an upper bound on what SearchGraph renders for the same user and app filter — SearchGraph applies additional filters that these counts do not.
CountGrantsForUserByApp response. Grant counts are computed directly from grant bindings and are an upper bound on what SearchGraph renders for the same user and app filter — SearchGraph applies additional filters that these counts do not.
The number of applications represented in app_grant_counts.
Grant counts, one entry per application the user has at least one grant in (or per requested app_id, if narrower).
The user's accounts, scoped by the app_ids filter when provided. Includes accounts with zero counted grants. Lets callers filter a subsequent access graph by account without a second lookup.
Advisory size classification for the user's access graph. See GraphSizeBand.
GRAPH_SIZE_BAND_UNSPECIFIED, GRAPH_SIZE_BAND_NORMAL, GRAPH_SIZE_BAND_SUMMARIZED, GRAPH_SIZE_BAND_TOO_LARGE The sum of grant_count across all app_grant_counts.