
TarunM.15494 (Customer) asked a question.
Hi,
I've created okta developer account. I'm getting correct response of users and groups api when I tried by Postman. That same api I want to access by c sharp code, I've tried but getting 'The remote server returned an error: (401) Unauthorized.'. Is there any permission needed for same? Can you please provide me full details for same with c sharp example code?
Thank you.

Here are links to Okta's documentation on users and groups for their API:
https://developer.okta.com/docs/reference/api/users/
https://developer.okta.com/docs/reference/api/groups/
If you're getting a 401 error, it's probably because of a problem with your API token. Here's the documentation on that:
https://help.okta.com/en/prod/Content/Topics/Security/API.htm
I recommend just creating a new API token with a super admin account, and use that in Postman. API tokens are associated with the admin account that created them, and will inherit the same permissions. So if you use an API token created by a super admin, you should have sufficient permissions.
Okta has SDK's for a few languages:
https://developer.okta.com/code/