withApiPermissions
Method
interface EntraIdApplicationResource { // ... omitted for brevity withApiPermissions( api: EntraIdApplicationResource, scopeNames: string[]): EntraIdApplicationResource;}Signature
method
withApiPermissions builderDeclares that this registration requires delegated permissions to scopes of another registration in the AppHost.
withApiPermissions( api: EntraIdApplicationResource, scopeNames: string[]): EntraIdApplicationResourceParameters
apiEntraIdApplicationResource The registration that exposes the scopes.scopeNames string[]The names of the scopes, added with `WithScope` to `api`.Returns
EntraIdApplicationResource Applies to
This method applies to the following types: