After retrieving the openid resource ID in Step 2 and the profile scope in Step 3, you can use the POST /environments/{{envID}}/applications/{{appID}}/grants operation to create a resource access grant for the new Web application.

The body of the request specifies the ID for the resource property (openid) and the ID for the scopes (profile) that you assign to the application resource grant.

The response data shows the resource grant ID and the scopes associated with the grant.