JSM portal user picker different for customers vs users
Asked by Tom?? Vrabec:

Hello community!

Maybe I am kind of blind, but cannot figure this out.

Customer is using JSM for both licenced users and customer with portal only access.

I got multiple request types, but all contains Jira User Picker fields

* Requested for
* Manager (supervisor)

Those field behave different for portal only access and for licensed users.

Can anyone explain this to me?

Here is attached screenshot, on the left side, licensed user. On the right side customer.

I am filling values into field via behaviors.

See difference? Left side names, right side keys. Left side icons, right side nothing.

I am already using

```
ApplicationUser user = ComponentAccessor.getUserManager().getUserByName("systemRobotUser");
ComponentAccessor.getJiraAuthenticationContext().setLoggedInUser(user);
```

In my behavior to get working API calls to Insight etc. But cannot figure out different user pickers.

![screenshot 92.png](https://community.atlassian.com/t5/image/serverpage/image-id/172732iBE8E40E355736CB8/image-size/large?v=v2&px=999 "screenshot 92.png")


Answers:
author: Tom?? Vrabec
body: Follow up: This behavior is confirmed bug: <https://productsupport.adaptavist.com/browse/SRJIRA-5677>


author: Peter-Dave Sheehan
body: I was seeing a similar difference and found that in order to get a user pick list and see the full display name of the selected user, the current user must meet the following two criteria:

1) Have a service desk license

2) Have Service Desk Agent permission on the project

If either of those conditions fail, the user can only enter users by their username (no picklist and no display value)


author: Nic Brough -Adaptavist-
body: No, you're not going mad or blind! Nor are you doing anything wrong!

In a service-desk environment, customers are not expected to know the individuals who will be working to deal with their queries. Nor are they expected to particularly care or make use of any information about the operative.

Imagine the case I had last week - I pinged my bank with a query in the app, they got in touch and there was a conversation. With several people. They all gave me their names, but only really for the current conversation. As a customer, I don't actually care who they are (unless they're really good or really bad, but that'll go on the CSAT anyway). I know I got passed between several people, I expected it, and it didn't matter.

So, your "portal access" people, the external customers, don't get to see your internal users names.

The oddity here is that when a "customer" here is an internal user who DOES have access to the list of internal users, Jira goes "yeah, might as well show them, as they could go into a non-JSD area of Jira and see them anyway"

comments: author: Tom?? Vrabec
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

Well. Ok. But. Still. I am in closed corporate network. All customers are from from NT domain. Well lets say all 10k users are from NT. But only 250 got Jira license, the rest are customers.

The strange thing is, that, as a customer - when I type manually name, I got search results with names and they will stay.

Only when using behaviors and .setFieldValue(currentUser.key) there are different results for Customer and User. Maybe should I report that into yours Jira backlog?


author: Nic Brough -Adaptavist-
body: Worth a try, definitely. I suspect it might be "Jira customers and users are handled differently, SR can only work with what Jira gives it", but it's definitely something the developers will know.


author: Tom?? Vrabec
body: Thanks, will ping them, cheers and have a nice day sir :-)


Tags: behaviours

confluence-server

customer

jira

management

server

service

user

user-picker