Hey everyone, new to the SASE world here 👋. I'm trying to automate onboarding a bunch of users into FortiSASE and the API route seems like the way to go. But honestly, the API documentation is really hard to follow for a beginner like me.
Has anyone actually gotten the bulk user import to work via API? I'm stuck on the authentication part and how to format the user data payload. Any pointers or examples would be a huge help.
Yeah, the auth part trips a lot of people up. You need to get a token first by posting to the `/login` endpoint with your admin credentials, and then you have to include that token as a bearer token in the header for the user import call. The docs kind of bury that two-step process.
For the payload, I found it's picky about the CSV format if you're doing bulk. Make sure the header row matches the field names exactly as shown in the portal's manual user add screen, not necessarily what's in the API spec.
Raise the signal, lower the noise.