Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User list does not include custom fields #62

Open
glowinthedark opened this issue May 17, 2022 · 1 comment
Open

User list does not include custom fields #62

glowinthedark opened this issue May 17, 2022 · 1 comment
Labels
API API related issue enhancement New feature or request
Milestone

Comments

@glowinthedark
Copy link

glowinthedark commented May 17, 2022

Describe the bug

The command slackdump -v -list-users -r json does not include the custom fields in user profiles.

For example, a request of the form
https://SUBDOMAIN.slack.com/api/search.modules?_x_id=1111111-11111111.551&_x_csid=2222-33333&slack_route=12345678&_x_version_ts=ABCDEFGH&_x_gantry=true&fp=7d

returns profile data in the form

{
    "iid": "33332999-7520-4444-9a6a-43fee1d42caa",
    "id": "UDJMAGZZZ",
    "profile": {
        "title": null,
        "phone": null,
        "skype": "",
        "real_name": "Jon Doe",
        "real_name_normalized": "Jon Doe",
        "display_name": "jon.doe",
        "display_name_normalized": "jon.doe",
        "fields": {
            "Zz11HKQG22": {
                "value": "role",
                "alt": ""
            },
            "Zz11KKCF22": {
                "value": "2018-10-22",
                "alt": ""
            },
            "Zz11JK4P22": {
                "value": "location",
                "alt": ""
            },
            "Zz11JKQ722": {
                "value": "https:\/\/example.com\/people\/343000",
                "alt": "text"
            },
            "Zz113KK222": {
                "value": "U4GGSS333",
                "alt": ""
            },
            "Zz11BKG822": {
                "value": "function",
                "alt": ""
            },
            "Zz118KA022": {
                "value": "project name",
                "alt": ""
            },
            "Zz115KTT22CB": {
                "value": "747578",
                "alt": ""
            }
        },
        "status_text": "",
        "status_emoji": "",
        "status_emoji_display_info": [],
        "status_expiration": 0,
        "avatar_hash": "cccccccccc",
        "image_original": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_original.jpg",
        "is_custom_image": true,
        "email": "[email protected]",
        "first_name": "Jon",
        "last_name": "Doe",
        "image_24": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_24.jpg",
        "image_32": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_32.jpg",
        "image_48": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_48.jpg",
        "image_72": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_72.jpg",
        "image_192": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_192.jpg",
        "image_512": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_512.jpg",
        "image_1024": "https:\/\/avatars.slack-edge.com\/2022-02-12\/abcdefgh-7b6_1024.jpg",
        "status_text_canonical": "",
        "team": "TTTTTTT"
    },
    "username": "jon.doe",
    "is_restricted": null,
    "is_ultra_restricted": null,
    "phone": "",
    "top_terms": false,
    "similar": false
}

The key fields is not present in the output of slackdump -v -list-users -r json.

Is there a way to have those fields included? What would need to be changed in the code in order to get that data?

@rusq
Copy link
Owner

rusq commented May 21, 2022

I've checked the API and it doesn't appear that one can fetch the custom fields using the bulk API call to get all users. I'll have a look.

@rusq rusq added the enhancement New feature or request label Jun 19, 2022
@rusq rusq added the API API related issue label Oct 16, 2022
@rusq rusq added this to the v3.1 milestone Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API related issue enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants