Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Highlighted
Partner
Partner

Get all the streams specific to particular user using QRS API?

How do I get all the streams(Streams that the users have access to) specific to particular user using QRS api?

Thanks in advance !!

1 Solution

Accepted Solutions
Partner
Partner

Re: Get all the streams specific to particular user using QRS API?

var user = Call QRS API endpoint /qrs/user/full to get full information about the user.

var streams = Call QRS API endpoint /qrs/stream/full to get all streams info.

List<StreamObject> userSpecificStreams = new List<StreamObject>();

foreach (var userAttribute in user.Attributes)

{

  userSpecificStreams.AddRange(from x in streams

                                     where x.CustomProperties.Any(streamCustomProp => streamCustomProp.Value == userAttribute.AttributeValue)

                                     select x);

}

3 Replies
Partner
Partner

Re: Get all the streams specific to particular user using QRS API?

Not so sure but you can try Qlik Branch

Partner
Partner

Re: Get all the streams specific to particular user using QRS API?

Followed the Qlik Branch link above, that doesn't mention about fetching the streams specific to particular user.

Partner
Partner

Re: Get all the streams specific to particular user using QRS API?

var user = Call QRS API endpoint /qrs/user/full to get full information about the user.

var streams = Call QRS API endpoint /qrs/stream/full to get all streams info.

List<StreamObject> userSpecificStreams = new List<StreamObject>();

foreach (var userAttribute in user.Attributes)

{

  userSpecificStreams.AddRange(from x in streams

                                     where x.CustomProperties.Any(streamCustomProp => streamCustomProp.Value == userAttribute.AttributeValue)

                                     select x);

}