GitHub user peter-morgan-imperatives closed the discussion with a comment: How 
to get superset datasource permissions through api.

Hi @Pratyush1403 I suspect you may need to page through the results. That is, 
do:

GET /api/v1/security/permissions-resources/?q=(page:0,page_size:100)

Then do:

GET /api/v1/security/permissions-resources/?q=(page:1,page_size:100)

etc..

repeatedly until you have all the permissions.

You then get things like this:

..
{
  "id" : 923,
  "permission" : {
    "name" : "datasource_access"
  },
  "view_menu" : {
    "name" : "[Elevate Insight].[Rated bolton](id:677)"
  }
}, {
  "id" : 924,
  "permission" : {
    "name" : "datasource_access"
  },
  "view_menu" : {
    "name" : "[Elevate Insight].[Contracts](id:678)"
  }
},
...

In my case they are quite high ids so on page 9.

I hope that helps.

Kind regards 

Pete.


GitHub link: 
https://github.com/apache/superset/discussions/28488#discussioncomment-13053862

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to