Authorization using the admin REST API

I have written a Golang app/server that needs to be able to export/import realms and users, I am using 20.0.3 and I am not sure how to configure the permissions properly. I am using the admin-cli client_id and its’ secret_key to get an access token, however when i submit a request to the /admin/realms/MYREALM/export-partial i get a 403 error. I vaguely recall in prior versions I had to make some changes to the realm roles (I believe) but I can not figure out how to do this in 20. i was wondering if anyone could help? Thanks!

nervermind figured it out, I was not assigning the admin role to the service account for the admin-cli client in the master realm. go program works now, yay!