Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
bradley_isaacs
Contributor II
Contributor II

How do i see who has access to a stream (but not through QMC) - via API

Hey guys I need to get a list with the users/ad groups who have access to the various streams.  But not through QMC.  Looking to create my own model, so i need to use an API.

PLease help

Labels (2)
3 Replies
bramkn
Partner - Specialist
Partner - Specialist

Hi, 

Have you checked this API page? It might have what you are looking for.

https://help.qlik.com/en-US/sense-developer/June2020/APIs/RepositoryServiceAPI/index.html#Methods

Øystein_Kolsrud
Employee
Employee

You should be able to use this endpoint:

https://help.qlik.com/en-US/sense-developer/June2020/APIs/RepositoryServiceAPI/index.html?page=1322

Do a POST with a body looking something like this (set "resource filter" to match your filter requirements, this one filters on the stream name 'Everyone'):

{
  "resourceType": "Stream",
  "resourceRef": {
    "resourceFilter": "((name eq 'Everyone'))"
  },
  "actions": 2,
  "environmentAttributes": "context = AppAccess; ",
  "subjectProperties": [
    "id",
    "name",
    "userId",
    "userDirectory"
  ],
  "auditLimit": 1000,
  "outputObjectsPrivileges": 4,
  "resourceProperties": [
    "name"
  ]
}

 

bradley_isaacs
Contributor II
Contributor II
Author

Thanks Yko
I'll give it a try