withAdminConsent
Method
interface EntraIdApplicationResource { // ... omitted for brevity withAdminConsent( api: EntraIdApplicationResource, scopeNames: string[]): EntraIdApplicationResource;}Signature
method
withAdminConsent builderGrants tenant-wide consent to delegated permissions that this registration declared for another registration in the AppHost.
withAdminConsent( api: EntraIdApplicationResource, scopeNames: string[]): EntraIdApplicationResourceParameters
apiEntraIdApplicationResource The registration that exposes the scopes.scopeNames string[]The names of scopes already declared with `WithApiPermissions`.Returns
EntraIdApplicationResource Applies to
This method applies to the following types: