cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving a user's scanqueues under Unity

Doug_Latch
Champ in-the-making
Champ in-the-making

In the unity API, how do you retrieve the scanqueues that a user has access to?  You can get a list of docTypes with the following:

                List<string> docTypes = new List<string>();                DocumentTypeList dtList = app.Core.DocumentTypes;                foreach (DocumentType docType in dtList)                {                    docTypes.Add(docType.Name);                }

and even through there is both a ScanQueue and a ScanQueueList class, it does not appear that you can construct the list in a similar fashion.

2 REPLIES 2

Joe_Kocsis
Confirmed Champ
Confirmed Champ

Douglas,

 

Thanks for your question!  At this time there is no method or property to check a User's access to a scan queue.  A ScanQueueList is created off of:

BatchManagement batchManagement = app.Core.BatchManagement;ScanQueueList scanQueueList = batchManagement.ScanQueues;foreach (ScanQueue scanQueue in scanQueueList){         //Do Work       }

Once you have the ScanQueue Object, you have access to it's methods and properties, which at this time, does not have a way to check user access.

 

 

Nathan_Kossover
Star Contributor
Star Contributor

To clarify - the code posted above will only return the ScanQueues that the logged in user has access to. There is not currently a way via the API to check scan queue access permissions for users aside from the currently logged in user.