For use the API you need the credentials, you can get it from Trimble Connect support :
Next, introducing and logging your credentials with postman you can get an access token to make requests in python, for more details check AuthGuide.
When you have an access token with python request library, you can use endpoints from TrimbleAPI,
For example, to get all information about your projects where token variable is "access_token [token generated by postman]":
This response of the requests:
Finally, you convert dataframe to excel and get the report by projects of all user. For my case, we also want information about the groups of each user is included. So we request the groups by project Id and add this information.