Create group from POST/Login issues

I’m checking to see if there is any way to validate an admin login from a post. I have been able to do a simple post with the query parameters to muc-room-edit-form.jsp and have it create a new group. However, it only works when I’ve already logged in via the admin interface. I can’t seem to validate login credentials outside of the admin interface. I assume it may be locked down, but I’m seeing if this is possible. I have an external database that I’d like to create a group off parameters from there systematically.

I can also manually insert the lines via procedure/routine, but they don’t take effet unless the service is restarted.

Any help would be greatly appreciated, thank you!