sec.getSamlEntityIds() as Sequence
This function returns the SAML entity ids stored in the Security database.
// execute this against the security database const sec = require('/MarkLogic/security'); sec.getSamlEntityIds();