Recent searches
No recent searches

Jon Finke
Joined Jul 07, 2022
·
Last activity May 03, 2023
Following
0
Followers
0
Total activity
8
Votes
0
Subscriptions
2
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Jon Finke
Jon Finke commented,
Progress of sorts - still doesn't work though.
I am able to load the photo via the "uploads" process, and get a token and access URLs (which allowed me to confirm that Zendesk indeeds HAS the photo I uploaded). My latest attempt to attach the photo to a user (agent) record,
https://rpi-registrar.zendesk.com/api/v2/users/7412860633620.json?token=vQcGDNGc9jFJM4CEkW3yOtbWv
With the body
{"user":{"id":7412860633620,"photo":{"uploads":["vQcGDNGc9jFJM4CEkW3yOtbWv"]}}}
Resulted in a status code of 200 and the following:
x-zendesk-api-warn, val={:allowed_parameters=>{:controller=>"users", :action=>"update", :unpermitted_keys=>["user.photo.uploads", "token"], :invalid_values=>[]}}
The dreaded unpermitted keys error.
Can the uploaded/attachment followed by using the token to set the value work for a user record? Does anyone have working example?
Do we need to have a setting changed somewhere to allow this to happen via the API?
View comment · Posted May 03, 2023 · Jon Finke
0
Followers
0
Votes
0
Comments
Jon Finke commented,
I tried passing in the URL into the remote_photo_url - and that works - the photo appears on the user profile page as desired. But I would rather not leave that URL "live" - it is intended for short term, secure access. Checking my web server logs, it appears that the value is being cached somewhere, which is good - only one hit to my web server (this is good). On the other hand, the reference is from a generic AWS server, so I can't "white list" the host.
I was able to load a photo as an attachment (as suggested in the "Users" part of the API documents, but I was unable to figure out how to associate the uploaded "attachment" with the user entry.
Just adding a "photo" element with the token resulted in a
x-zendesk-api-warn, val={:allowed_parameters=>{:controller=>"users", :action=>"update", :unpermitted_keys=>[], :invalid_values=>["user.photo"]}}
View comment · Posted Jul 12, 2022 · Jon Finke
0
Followers
0
Votes
0
Comments
Jon Finke commented,
I would also like that. My use case is to provide a link to the agent to open a window in the IdM app for password resets and system lookup. If I could deep link into the Registrar's system, I would add that too.
View comment · Posted Jul 08, 2022 · Jon Finke
0
Followers
1
Vote
0
Comments
Jon Finke commented,
In checking the web server logs, I am not seeing any hits from Zendesk servers, so I am guessing that my API update was NOT making it in.
I was just hoping that passing a URL to the Zendesk API would be a quick way to get photos imported to our Zendesk instances. I am open to other alternatives - the API documentation referenced the Attachment API (IIRC), but that claimed it was limited to attachments for tickets.
View comment · Posted Jul 07, 2022 · Jon Finke
0
Followers
0
Votes
0
Comments
Jon Finke commented,
The URL provided had a limited lifetime and use count - it had hit the max of 5. I kicked it up to 50.
View comment · Posted Jul 07, 2022 · Jon Finke
0
Followers
0
Votes
0
Comments
Jon Finke created a post,
I am attempting to set the user profile photo via the API. I am able to add and update users, but I am having issues with adding the photo.
I am getting the following error returned in the headers:
x-zendesk-api-warn, val={:allowed_parameters=>{:controller=>"users", :action=>"update", :unpermitted_keys=>["user.photo.content_url"], :invalid_values=>[]}}
I am sending the following JSON:
{
"user": {
"photo": {
"content_url": "https://apex.cct.rpi.edu/apex/simon_apex.display_blob?URL_KEY=GHu5iY48fMQC6ExnuardXOLNd"
},
"id": 7412860633620,
"external_id": "91000000",
"name": "Jon Finke",
"email": "finkej@rpi.edu",
"verified": true,
"user_fields": {
"display_name": "Jon Finke",
"first_name": "Jon",
"last_name": "Finke",
"rcs_id": "finkej",
"portfolio": "Division of the Chief Information Officer (DotCIO)",
"department": "Database Administration"
}
}
}
Posted Jul 07, 2022 · Jon Finke
1
Follower
6
Votes
10
Comments