Sub topic 4
Who Owns a Case: Users and Queues
This chapter assumes you can navigate Setup, know what a list view is, and understand profiles and permission sets. The Apex and SOQL examples are optional. You should also know the main Case fields from earlier chapters.
The Owner field
Every case has exactly one owner, stored in the standard OwnerId field. The owner is either a user or a queue. Both kinds of owner use the same field, so a single OwnerId value can point at either one.
The two kinds of owner mean different things:
- A user owner is one person who is responsible for working the case now.
- A queue owner is a shared holding area. Nobody is working the case yet, but a defined group of people can see it and claim it.
Ownership also controls access. Under a private sharing model for cases, the owner can always see and edit the record. Users above the owner in the role hierarchy usually get access too. Queue members get access to the cases in their queue.
User ownership versus queue ownership
| Aspect | User owner | Queue owner |
|---|---|---|
| Who is responsible | One named agent | No one yet; a team shares it |
| Typical stage | In progress | New, waiting to be picked up |
| Appears in "My Cases" | Yes | No |
| Can be an owner of every object | Yes | Only objects enabled for that queue |
| Needs a license | Yes | No, a queue is not a user |
A queue can only own records of the object types you select when you create the queue. If Case is not selected, the queue will not appear as an owner option on cases.
How ownership usually changes
Most support teams follow the same pattern. A case arrives, an assignment rule puts it in a queue, and an agent takes it from the queue. If the case stays open too long, an escalation rule may reassign it to another user or queue.
The loop from the Tier 2 owner back to an agent is intentional. A queue is never the final owner of a case that gets resolved, because someone must accept it first.
Changing the owner
A user with the right access can change a case owner in three common ways:
- Use Change Owner on the case record and pick a user or a queue.
- Select cases in a list view that shows queue cases and use Accept to take ownership.
- Let automation set it, using an assignment rule, an escalation action, or Apex.
Owner changes are tracked only if you enable field history for Owner. Without it, you cannot tell afterward who held a case before.
Finding queue-owned cases
Because OwnerId can hold a user or a queue, SOQL gives you Owner.Type to tell them apart. This query returns open cases still waiting in a queue:
SELECT Id, CaseNumber, Subject, Status
FROM Case
WHERE Owner.Type = 'Queue' AND IsClosed = false
ORDER BY CreatedDate ASCOldest first puts the cases that have waited longest at the top.
Common errors
- The queue is missing from the owner lookup. Case was not added to the queue's supported objects, or the person changing the owner is not allowed to see that queue.
- A user cannot accept a case. The user is not a member of the queue, directly or through a role or group, or lacks edit access on cases.
- Cases pile up in a queue. No agent is monitoring it, or members have no notification set. Queue email only goes out if you configure it.
- Reports show "owner" as a name that is actually a queue. Filter on owner type when you need only people.
Exercise
A case has OwnerId set to a queue, and an agent in that queue wants to work it. What should the agent do, and what changes on the record?
Show answer
The agent accepts the case, for example with Accept from a queue list view or Change Owner. OwnerId changes from the queue's Id to the agent's user Id, so the case now appears in the agent's own cases and no longer counts as queue-owned.