Add registered claims which will be used to map users with the desired privileges.
Add-VmsLoginProviderClaim registers a specific claim to be used for assigning
users to roles. A wide range of claims may be received after authentication of a
user from an external login provider, but only "registered claims" may be added
to a role for the purpose of granting privileges to users.
- Requires VMS connection and will attempt to connect automatically
- Requires VMS version 22.1
Adds a registered claim with the name 'vms_role' to all external login providers. As of VMS version 2023 R1 there can be only one login provider. In the future, if multiple login providers are supported, this example would add the claim to all providers.
The display name for the claim is set to 'Role' so this is how it will be displayed when viewing claims associated with users and roles.
Specifies that the claim name is case sensitive.
Specifies an alternate, user-friendly display name for the claim which will be shown when viewing claims associated with users and roles.
Specifies the external login provider configuration to which the claim should be registered.
Specifies the name of the claim to be registered. The value should match the name of a claim present in tokens issued by the external login provider.
Prompts you for confirmation before running the cmdlet.
Shows what would happen if the cmdlet runs. The cmdlet is not run.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.