Hi, the userSessionId should be unique for each session. There are some very rare situations where the agent might send duplicate so to be absolutely sure, you will need to include tenantId and startTime of the session. But that is only for very rare corner cases.
Hello @Jeremy B.
We can obtain user sessions data through Dynatrace Environment API but I guess export is not available yet.
User session export has only basic authentication.