I am trying to create an event on a Conflunence calendar using an admin account. When using my own account ID for the "person" field, the event is created successfully. However, any other account ID results in an "Invalid user" error. This occurs on all calendars, even those without any restrictions on them. This also occurs across multiple spaces. I added an event for the user in the UI and then tried to use the API again, but the same result occurred. All user IDs were obtained from the /wiki/rest/api/user endpoint. Below is the payload used. Any ideas as to why only one account ID works?
PUT request
http://domain.atlassian.net/wiki/rest/calendar-services/1.0/calendar/events.json
Auth - Basic Auth
Header - Content-Type: application/x-www-form-urlencoded