The GET /environments/{environmentId}/resources/{resourceId}/attribute operation creates an attribute mapping. The value for the {resourceId} parameter is the ID of the custom resource you retrieved in Step 2.

The request body must specify values for the attribute name and value properties. The name property value must be unique within the specified environment resource, and cannot use any of the reserve names. In this scenario, a custom scope name property with a value of customAttr_Email is associated with the email property value for the user. This mapping is expressed as "value": "${user.email}" in the request body.