List Of Application Keys and their expiration date
Hello,
I want to monitor the application keys and their expiration date
I tried two ways to list the application keys:
- using GetEntityList() from EntityService
var result = Resources["EntityServices"].GetEntityList({
maxItems: 10000,
nameMask: undefined,
type: 'ApplicationKey',
});
But this give me an infotable with the following fields:
avatar, description, homeMashup, isSystemObject, name, tags
- Then I tried SpotLightSearch:
const result = Resources["SearchFunctions"].SpotlightSearch({
maxItems: 1000000,
types: { items: [
"ApplicationKey"
]},
aspects: { isSystemObject: false },
maxSearchItems: 1000000
});
This give me an infotable wtih the following fields:
delete, description, id, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtension, isSystemObject, lastModifiedDate, name, parentName, parentType, read, type, update
So my problem is that both returned infotable that are not matching the ApplicationKey DataShape.
And those infotable lack the userNameReference field which could allow me to get the ApplicationKeyExpirationInfoCollection (using GetApplicationKeyExpirationInfo
https://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/index.html#page/ThingWorx/Help/Composer/Security/ApplicationKeys/ApplicationKeyServices.html ) where I could have the reference user and expiration date.
How can I get a list of application key with their expiration date?
Thanks

