Show last login date on Skuid manage license view

  • 1
  • Question
  • Updated 4 years ago
  • Answered
It would be very helpful to have the last login date as a column in the Skuid Licensed Users view.

Photo of Jared Jones

Jared Jones

  • 2,256 Points 2k badge 2x thumb

Posted 4 years ago

  • 1
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 9,332 Points 5k badge 2x thumb

That would be great but unfortunately, this is a standard Salesforce page for installed packages. One suggestion is to create a new view for the user page (Setup menu --> Administer --> Manage Users --> Users) that only shows those with a Skuid license and that can show when they last logged in ... 

Photo of Jared Jones

Jared Jones

  • 2,256 Points 2k badge 2x thumb
Thanks Karen.  Your suggestion got me thinking, and I've put together a page that uses the Permission Set Assignment object:

<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" showheader="true" tabtooverride="PermissionSetAssignment">   <models>
      <model id="PermissionSetAssignment" limit="100" query="true" createrowifnonefound="false" sobject="PermissionSetAssignment" adapter="" type="">
            <field id="AssigneeId"/>
            <field id="Assignee.Name"/>
            <field id="PermissionSet.Name"/>
            <field id="Assignee.LastLoginDate"/>
            <field id="Assignee.Profile.Name"/>
            <field id="PermissionSetId"/>
            <field id="Assignee.UserRole.Name"/>
            <field id="Assignee.UserRoleId"/>
            <field id="Assignee.ProfileId"/>
            <field id="Assignee.IsActive"/>
            <condition type="fieldvalue" value="Skuid_Page_Viewer" enclosevalueinquotes="true" field="PermissionSet.Name"/>
      <pagetitle model="PermissionSetAssignment" uniqueid="sk-xndOm-65">
            <action type="savecancel"/>
      <skootable showconditions="true" showsavecancel="false" searchmethod="server" searchbox="true" showexportbuttons="false" pagesize="10" createrecords="true" model="PermissionSetAssignment" mode="read" uniqueid="sk-xndOm-66">
            <field id="PermissionSet.Name" valuehalign="" type="" allowordering="true"/>
            <field id="AssigneeId" valuehalign="" type="">
            <field id="Assignee.ProfileId" valuehalign="" type="">
            <field id="Assignee.UserRoleId" valuehalign="" type="">
            <field id="Assignee.LastLoginDate" valuehalign="" type="" allowordering="true"/>
            <field id="Assignee.IsActive" type="" valuehalign="" allowordering="true"/>
            <action type="edit"/>
            <action type="delete"/>
         <massactions usefirstitemasdefault="true">
            <action type="massupdate"/>
            <action type="massdelete"/>
            <view type="standard"/>
      <styleitem type="background" bgtype="none"/>
Photo of Zach McElrath

Zach McElrath, Employee

  • 56,134 Points 50k badge 2x thumb
Jared, you can make a Skuid Page that lets you do this! The object that lets you deal with assignments of package licenses to users is "UserPackageLicense". Here is a page I threw together in about 10 minutes --- yes it was that quick --- that will let you do basically what you are after --- it displays a list of users with a Skuid package license, ordered by Last Login Date ascending --- meaning that the users who have either never logged in or who haven't logged in in a really long time will show up on top, so that you can quickly revoke their license, freeing up the license for another user.

This page could be adapted in many ways but it's a representative sample. Here is a link to get the XML for the page, which I've added to our Sample Pages repo:

Photo of Jared Jones

Jared Jones

  • 2,256 Points 2k badge 2x thumb
Thanks Zach!