iam
iam copied to clipboard
Add statistical endpoint
e.g. for the number of VO users; it should be public
Related GGUS:155077
The output of the following query shows only the total number of VO users:
$ curl --silent -H "Authorization: Bearer $AT" https://iam-dev.cloud.cnaf.infn.it/scim/Users?count=0 | jq
{
"totalResults": 22,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
],
"Resources": []
}
and we can extract it like this:
$ curl --silent -H "Authorization: Bearer $AT" https://iam-dev.cloud.cnaf.infn.it/scim/Users?count=0 | jq .totalResults
22
The only constraint is that access to the endpoint requires the scim:read
scope in the access token.
Ciao Roberta, we need something like that to work without an AT...
We probably need to have an anonymous /stats
endpoint (name to be decided) that we populate with some basic information. Based on your experience, can you give some indication on what this information can be, at least as a first solution? As a format, is JSON ok?
Why we are talking just about "stats" while original GGUS ticket asks for "list of users of each IAM VOMs"?
Hi all, while the Operations Portal may get the list of users from VOMS-Admin to count them, we can no longer do that in these GDPR times. The number of users is sufficient, to be made available anonymously, so that we avoid hassles with client registration and operations: "My client no longer works: help!"
Hi again, JSON format sounds fine.
PR https://github.com/indigo-iam/iam/pull/790.