Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
s29124141
Partner - Creator II
Partner - Creator II

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
s29124141
Partner - Creator II
Partner - Creator II
Author

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);

}

View solution in original post

3 Replies
shraddha_g
Partner - Master III
Partner - Master III

Not so sure but you can try Qlik Branch

s29124141
Partner - Creator II
Partner - Creator II
Author

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

s29124141
Partner - Creator II
Partner - Creator II
Author

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);

}