400 Error When Retrieving Account Settings via API

I was unable to retrieve my account settings through “url = https://api.zoom.us/v2/accounts/me/settings” when I try to run the python function in my local machine I was getting this error “Failed to fetch account settings. Status code: 400
Response: {“code”:4711,“message”:“Invalid access token, does not contain scopes:.”}”. For authentication, I’m utilizing the “Server-To-Server OAuth” method. I am confident that my access token is valid, as I can successfully use it to list and create users. Additionally, I have ensured that my application has the necessary scopes assigned for these operations.
Below are the scopes I have provided to my application:
|account:read:account_setting:master|

|account:read:account_setting:admin|
|account:read:settings:admin|
|account:read:settings:master|
|View and manage account info|
|account:update:settings:admin|
|View and manage sub accounts|
|account:update:settings:master|

Could anyone guide me on what might be causing this error? Is there a specific scope required for accessing account settings that I might have overlooked, or could this be related to another issue?

Thank you for your assistance!