최근 검색
최근 검색 없음

Gaby Bitar
가입한 날짜: 2022년 7월 10일
·
마지막 활동: 2024년 11월 03일
팔로잉
0
팔로워
0
총 활동 수
23
투표 수
0
플랜 수
6
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Gaby Bitar
Gaby Bitar님이 에 댓글을 입력함
Hi Raphaël Péguet - Officers.fr,
Yes I did, I used the Users/me api to grab the current users ID number and add that to a variable - https://developer.zendesk.com/api-reference/ticketing/users/users/#show-self
Then I used that userID to call the user segments api and list the current users User Segments.
/api/v2/help_center/users/{user_id}/user_segments.json
I hope this helps!
댓글 보기 · 2023년 2월 15일에 게시됨 · Gaby Bitar
0
팔로워
0
투표 수
0
댓글
Gaby Bitar님이 에 게시물을 만듦
I would love to know if there is a way to hide specific articles from Search results and instant search either by using tags or anything else.
2023년 2월 10일에 게시됨 · Gaby Bitar
3
팔로워
5
투표 수
2
댓글
Gaby Bitar님이 에 댓글을 입력함
Ahmed Zaid Thank you, it worked!
댓글 보기 · 2023년 1월 09일에 게시됨 · Gaby Bitar
0
팔로워
0
투표 수
0
댓글
Gaby Bitar님이 에 댓글을 입력함
Ahmed Zaid is there no way to determine what User Segments an end-user belongs to?
댓글 보기 · 2023년 1월 07일에 게시됨 · Gaby Bitar
0
팔로워
0
투표 수
0
댓글
Gaby Bitar님이 에 게시물을 만듦
I am trying to pull which user segment the current logged in end user belongs to. I am currently using the "GET /api/v2/users/me" to retrieve the current users ID and using that ID to try to pull the user segments. (Code below, it's working for admins but not for end users, I also masked the email and tokenID for this forum purposes)
$.getJSON('/api/v2/users/me', function(data) {
console.log("got data", data);
getUserSegment(data.user.id);
});
function getUserSegment(userID){
// fetch UserSegment API.
$.ajax
({
url: '/api/v2/help_center/users/'+userID+'/user_segments.json',
headers: {
"Authorization": "Basic email-address/token:tokenID"
},
beforeSend: function (xhr){
xhr.setRequestHeader('Authorization', "Basic "+ btoa("email-address/token:tokenID"));
},
secure: true,
type: 'GET',
contentType: "application/json",
dateType: 'json',
success: function(data){
data.user_segments.forEach(function(element, index) {
alert(element.name);
});
}
});
}
Please help, not sure why it's not working.
2023년 1월 06일에 편집됨 · Gaby Bitar
0
팔로워
3
투표 수
5
댓글
Gaby Bitar님이 에 댓글을 입력함
Eric Nelson I don't need to suspend users anymore and tried it with updating the User's custom roles and that updates instantly. There must be something with the Suspension field that delays in updating but luckily I don't need that right now. Thank you so much for your help again!
댓글 보기 · 2022년 7월 20일에 게시됨 · Gaby Bitar
0
팔로워
0
투표 수
0
댓글
Gaby Bitar님이 에 댓글을 입력함
Hey Eric Nelson , thank you so much for all of your help. Sorry for the late response was out of the office. This method worked great for me!
댓글 보기 · 2022년 7월 20일에 게시됨 · Gaby Bitar
0
팔로워
0
투표 수
0
댓글
Gaby Bitar님이 에 게시물을 만듦
Would love to be able to change an Agent's role-type to Light Agent. Is there any way to do this? or is there absolutely no way to do this?
Thank you.
2022년 7월 14일에 게시됨 · Gaby Bitar
0
팔로워
3
투표 수
2
댓글
Gaby Bitar님이 에 댓글을 입력함
Eric Nelson I tried using this and I am still getting the same issue. As I do get a success popup notification saying the user was suspended, it doesn't update the API instantly, it updates after the app is refreshed.
댓글 보기 · 2022년 7월 14일에 게시됨 · Gaby Bitar
0
팔로워
0
투표 수
0
댓글