Rest API to get Subscription's Classic Administrators - rest

I use below rest API to get all other role assignments but i am not finding one for Classic administrators. Can someone
"https://management.azure.com/subscriptions/{SubscriptionID}/providers/Microsoft.Authorization/roleAssignments?api-version=2018-09-01-preview"

Got it. I was able to find the Rest API here

Related

Azure Devops API - Can't find a way to get permission groups/membership using API

I am looking for a way to use the Azure DevOps API to get membership of permission groups. The data I am looking for is in the following location on the front end:
I had the same requirement to get team membership within Azure DevOps and was able to do so using the following URI:
https://dev.azure.com/{organization}/_apis/projects/hrs/teams/{teamname}/members?api-version=6.0
I could not find a similar URI to get permission groups and need a way to pull this information using the API.
I've tried many of the API endpoints on the official api documentation (below) focusing on any that seem like they may pull security group related information. In all cases I came up short either because the endpoint did not provide me with what I was looking for, or the documentation for an endpoint wasn't clear on how parameters need to be structured for more advanced use cases.
https://learn.microsoft.com/en-us/rest/api/azure/devops/graph/groups/get?view=azure-devops-rest-7.0&tabs=HTTP
I also tried asking this question to ChatGPT however the endpoints the chatbot provided me with did not work either.
I found a way to get what I am looking for, but I am not a big fan of the approach.
You can use the graph API to list all permission groups
once you have the permission groups, you can write a script to filter for the group object within the API response you want to get the members of.
The group object has the appropriate API endpoint to hit to get the member objects within the _links.memberships property.
Call the API with the memberships link from above. It will return an array of descriptors which can be used in further API calls.
For each descriptor, hit the appropriate API endpoint to resolve the object for that descriptor. If the descriptor starts with aad then it is a user and you can use the user get api. If the descriptor starts with aadgp then it is a group and you use the group get api.
This strategy is rather complicated and requires an API call for each member of the group. I'd hope there is a better solution.

is there anyway we can access permissions and roles of users using vsphere rest api?

I have a site where I need to access the user's roles and permissions whose name is stored in domain controller to authenticate them. I am using Vsphere rest api but am unable to find the endpoint for it.I am wondering if it is possible anyway.
You’re correct, the option to access or modify roles and/or permissions is not yet available through the vSphere REST APIs.

Is there a complete list of sharepoint online rest api from official docs?

As title said, Is there a complete list of sharepoint online rest api from official docs?
I've done some research. However from the MS docs I can only find Complete basic operations using SharePoint REST endpoints and Get to know the SharePoint REST service.
Or maybe there just isn't one for the current Sharepoint Online implementation from official docs which have REST api reference and samples.
I was consider using MS graph as well, however it seems at the moment, the operations exposed by the Graph for SharePoint are very limited when compared to the native SharePoint REST API.
If there is a list, please share.
REST APIs of SharePoint are conformed to the specification of OData, we can use it like we use other OData APIs.
Here you go:
REST API reference and samples
More information about OData, we can refer to: OData - the best way to REST
If you have been authenticated (e.g. have an access token) and you can use the SharePoint API, then you can get a list of available endpoints for GET requests:
https://[tenant].sharepoint.com/[site]/_api/Web
The first part of the response provides a list of endpoints that you can explore further. [site] can be requested at any level (there can be many subsites below).
For example:
https://[tenant].sharepoint.com/[site]/_api/Web/SiteUsers
will allow you to display a list of users on a site and other possible endpoints, and
https://[tenant].sharepoint.com/[site]/[subsite]/_api/Web/Lists
will display all the lists that belong to the given subsite.
Unfortunately, I was not able to get a list of endpoints for POST requests such as: _api/web/lists/getByTitle('Documents')/breakroleinheritance(copyRoleAssignments=false, clearSubscopes=true)

How can I fetch all the Subscriptions/Users of an API in WSO2 APIM 2.1

I am aware that WSO2 APIM has its REST APIs which can fetch all the subscriptions and applications for an API. But since these REST APIs are scope specific and require scoped tokens which are created based on a particular users credentials it can only retrieve the subscriptions and applications of a particular user and not all the API subscriptions (subscriptions done by other users).
Is there any way I could retrieve all the subscriptions of an API (not restricted by a single user)
Try explore the Registry REST API [1], I think this is the best way to get this generic information.
[1] https://docs.wso2.com/display/AM250/Using+the+Registry+REST+API
Another possibility is you check in the Administration Services [2] if you find something that can help you.
[2] https://docs.wso2.com/display/AM250/WSO2+Admin+Services
Actually, I figured out what I was doing wrong. The Store REST APIs are scoped and can only fetch the subscriptions of a particular user since the token scope is user specific. However, if I tried the Publishers REST API for fetching all subscriptions, I could fetch all the subscriptions regardless of the user and application, hence giving me the result I required.
Basically I used https://docs.wso2.com/display/AM210/apidocs/publisher/#!/operations#SubscriptionCollection#subscriptionsGet
instead of
https://docs.wso2.com/display/AM210/apidocs/store/#!/operations#SubscriptionCollection#subscriptionsGet

Adding Users to Groups in Jfrog's Artifactory using REST API

I need to add users to the groups in Artifactory using REST API. I cannot find any REST API methods available for doing this.I am using PERL scripting to automate Artifactory's REST API calls. Could you please suggest me some ways of doing this?
Thanks in Advance!
The REST API you're looking for is here - it uses a json descriptor for operations as specified here.
If you want to see an example of such descriptor use the get group details on the specific group you're after (use get groups for a list of all your groups).
To add users to specific permission targets you can use get permission tragets, get permission target details and create or replace permission target respectively - This is the json it uses.
As for client usage - any simple REST client implementation will do of course, you don't have to use an Artifactory specific client for that.
Admin permissions are required for such operations - ask your system admin for these if you are not the admin - it's always better to use the API key but basic auth will work as well.