Password Manager Entitlements
Managing consumption of Password Manager capabilities
Entitlement Types
Entitlement
Type
Description
/* ... */
export type EntitlementName = 'vaultMaxPerSudo' | ...public struct Entitlement {
/* ... */
public enum Name: String {
case maxVaultPerSudo
}
}data class Entitlement(
// ...
) : Parcelable {
/** Enum that represents the different types of entitlements available */
enum class Name {
MAX_VAULTS_PER_SUDO
}
}Getting Entitlements
try {
const entitlements = await client.getEntitlement()
entitlements.forEach((ent) =>
console.log(`This user can have up to ${ent.limit} of ${ent.name}`))
} catch (error) {
// Handle/notify user of the error.
}var client: PasswordManagerClient!
client.getEntitlement { (result) in
switch result {
case .success(let entitlements):
entitlements.forEach {
print("This user can have up to \($0.limit) of \($0.name)")
}
case .failure(let error):
/* Handle error logic */
return
}
}Last updated