How to show SPS active connection in SPP?

Hi,

Is is possible to show (view only) to the SPP users the current SPS activity, meaning who at that time is connected to which asset and under which account?

Thanks for your replies,

Pierre

Parents
  • Hello Pierre,

    Yes you can do that. One location to do that is on the Home menu under Access Request Activity. You will find information about Open Sessions. If you click on it, you can see information about the User, Asset and Account.

    User who wants to have the ability to view Access Request Activity in the Home menu needs to have Application Auditor role permission set.

    Best regards,

    Darko

Reply
  • Hello Pierre,

    Yes you can do that. One location to do that is on the Home menu under Access Request Activity. You will find information about Open Sessions. If you click on it, you can see information about the User, Asset and Account.

    User who wants to have the ability to view Access Request Activity in the Home menu needs to have Application Auditor role permission set.

    Best regards,

    Darko

Children
  • Thanks, Darko for your help. Indeed, it provides the information, but with the Application Auditor rights come a lot more information (entitlements for instance) that we do not wish to give to our users, most being external users. Is there a way to show only the Access Requests Activity?

  • Sadly, from what i know, this is not possible due to role based access approach. Application Auditor is the most restrictive role for displaying this information, it is read-only. Other role that gives access to this menu is Security Policy role but permits editing of Entitlements and Request policies. If there is another way, please correct me.

    Alternatively, this information can be extracted from SPP and SPS via API endpoint.

    You would need to call "/service/core/v4/AuditLog/AccessRequests/Activities" on SPP and check if RecordingProperties.HasRecording is true and SessionId is not null. You would then call SPS API and include RecordingProperties.DownloadUrl attribute extracted from SPP API earlier to get the EndTime attribute along with other attributes for that session. Every record where EndTime is null or empty indicates a live session. You can extract remaining information (User,Asset,Account ) along the way from these two APIs.

    EDIT: Apparently SPP API gives out information about live sessions. So, checking the EndTime on SPS is not required. :)  You can extract all the information you need  from SPP API.

    "RecordingProperties": {
          "HasRecording": true,
          "SpsApplianceId": 0,
          "RecordingId": "string",
          "SessionResult": "string",
          "DownloadUrl": "string",
          "IsLive": true