Hello, we’re trying to customize our organization invitation template (using a custom email provider). According to the documentation we should be able to reference an inviter.name property, but it’s missing from the template. I added the {%debug%} into the template, but the property is absent.
Fortunately, I’m able to see the user_metadata object when sending the following body on the create invitation API request. (to use this as a fallback value since the correct property is missing) But I’m not sure why the expected inviter.name doesn’t show
"inviter": {
"name": "Example Name"
},
"invitee": {
"email": "example@example.com"
},
"send_invitation_email": true,
"client_id": "<client_id>",
"user_metadata": {
"inviterName": "backup name since inviter.name is missing"
}
After reading through your message, I did some testing on my end, the inviter.name property did show up for me, so I believe there might be some tweaking to be done with your setup.
What worked in my case was to use the Management API to first call the Get invitations to an organization endpoint, then use Create invitations to an organization and inviter.name was accessible in the body parameter. Additionally, just to have this checked off the list, make sure that you have the correct scopes for these endpoints.
Thank you for sharing the workaround that you found, that should definitely work in case you are not able to access the inviter.name property, but let me know if this started working for you.