EntraIdApplicationResource.withScope
Method
interface EntraIdApplicationResource { // ... omitted for brevity withScope( name: string, description: string, options?: EntraIdScopeOptions): EntraIdApplicationResource;}Signature
method
withScope builderExposes a delegated permission scope that clients can request to call this registration as an API.
withScope( name: string, description: string, options?: EntraIdScopeOptions): EntraIdApplicationResourceParameters
namestringThe scope's name, which appears in the token's scp claim, such as access_as_user.descriptionstringWhat the scope allows, shown on the consent page.optionsEntraIdScopeOptions optionalOptional settings for the scope.Returns
EntraIdApplicationResource Defined on
This method is defined on the following type: