Creates a new credential vault slot in the user managed vault segment. It returns a string that contains the ID of the newly created slot.
This function produces an error if slot creation fails for any reason.
portalLib.createVaultSlot(
resourceName STRING in,
secretType SecretKind,
active Boolean,
portletPrivate Boolean)
returns (value STRING)
//Create a shared user slot that will contain one secret per user
slotId STRING;
slotId = portalLib.createVaultSlot("myResource",
SecretKind.stringValues, false, false);