Security

Reply
Highlighted
Occasional Contributor I

No Recipt for guest created with API

Can anyone confirm if the auto_send_smtp receipt feature is working when creating a guest through the API?  It works when I create the guest through the portal, but not when creating using the API.  The account actually gets created fine.  I'm just not getting the email receipt when using the API.  I am sending "auto_send_smtp": 1, as part of the body response.  That field is present in the form and set with initial value of 1 (although I have it as a hidden field).  Any thoughts?

Guru Elite

Re: No Recipt for guest created with API

The API does not use the form configuration.

 

I just did a quick test with the payload below and received the email receipt.

 

{
  "email": "justatest@test.com",
  "enabled": true,
  "expire_time": "0",
  "password": "aruba123",
  "role_id": 2,
  "username": "justatest@test.com",
  "visitor_company": "The Empire",
  "visitor_name": "Darth Vader",
  "auto_send_smtp": 1
}

| Tim Cappalli | Aruba Security | @timcappalli | timcappalli.me |

NOTE: Answers and views expressed by me on this forum are my own and not necessarily the position of Aruba or Hewlett Packard Enterprise.
Search Airheads
cancel
Showing results for 
Search instead for 
Did you mean: