CUPS.GetJobUser
---------------

Queries which user submitted the job.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CUPS](component_CUPS.md) | [2.5](newinversion25.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md). Use [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md) instead.

MBS( "CUPS.GetJobUser"; Index ) 

**MBS**( **"CUPS.GetJobUser";** /\* Queries which user submitted the job. \*/  
**$Index**) /\* Index in the jobs list. Value from 0 to [CUPS.GetJobsCount](CUPSGetJobsCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Index | Index in the jobs list. Value from 0 to [CUPS.GetJobsCount](CUPSGetJobsCount.md)-1. | 0 |

### Result

The user name.

### Description

Queries which user submitted the job.  
Please call [CUPS.GetJobsCount](CUPSGetJobsCount.md) once before you call this function.  
Please consider using [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md) in future to query job list.  
### See also

- [CUPS.GetJobIndex](CUPSGetJobIndex.md)
- [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md)
- [CUPS.GetJobsCount](CUPSGetJobsCount.md)
- [CUPS.GetJobSize](CUPSGetJobSize.md)

### Release notes

- **Version 10.5**
    - Deprecated [CUPS.GetPrinterCount](https://www.mbsplugins.eu/CUPSGetPrinterCount.shtml), [CUPS.GetPrinterDefault](https://www.mbsplugins.eu/CUPSGetPrinterDefault.shtml), [CUPS.GetPrinterName](https://www.mbsplugins.eu/CUPSGetPrinterName.shtml), [CUPS.GetJobCompletionTime](https://www.mbsplugins.eu/CUPSGetJobCompletionTime.shtml), [CUPS.GetJobCreationTime](https://www.mbsplugins.eu/CUPSGetJobCreationTime.shtml), [CUPS.GetJobFormat](https://www.mbsplugins.eu/CUPSGetJobFormat.shtml), [CUPS.GetJobID](https://www.mbsplugins.eu/CUPSGetJobID.shtml), [CUPS.GetJobIndex](https://www.mbsplugins.eu/CUPSGetJobIndex.shtml), [CUPS.GetJobPrinter](https://www.mbsplugins.eu/CUPSGetJobPrinter.shtml), [CUPS.GetJobPriority](https://www.mbsplugins.eu/CUPSGetJobPriority.shtml), [CUPS.GetJobProcessingTime](https://www.mbsplugins.eu/CUPSGetJobProcessingTime.shtml), [CUPS.GetJobSize](https://www.mbsplugins.eu/CUPSGetJobSize.shtml), [CUPS.GetJobState](https://www.mbsplugins.eu/CUPSGetJobState.shtml), [CUPS.GetJobTitle](https://www.mbsplugins.eu/CUPSGetJobTitle.shtml), [CUPS.GetJobUser](https://www.mbsplugins.eu/CUPSGetJobUser.shtml) and [CUPS.GetJobsCount](https://www.mbsplugins.eu/CUPSGetJobsCount.shtml) function.

### Example Databases

- [CUPS/List Jobs](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/CUPS/List%20Jobs.shtml#1ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 10.5pr2](https://www.mbsplugins.de/archive/2020-10-05/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 5th October 2020

  
[CUPS.GetJobTitle](CUPSGetJobTitle.md) - [CUPS.GetJobsAsJSON](CUPSGetJobsAsJSON.md)

[HTML Version](CUPSGetJobUser.shtml)