Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How do I get all the streams(Streams that the users have access to) specific to particular user using QRS api?
Thanks in advance !!
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);
}
Not so sure but you can try Qlik Branch
Followed the Qlik Branch link above, that doesn't mention about fetching the streams specific to particular user.
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);
}