function getSlackUser(cursor) { const slack_app_token = "yourToken"; const limit =500; const options = { "method" : "get", "contentType": "application/x-www-form-urlencoded", "payload" : { "token": slack_app_token, "cursor": cursor, "limit":limit } }; const url = "https://slack.com/api/users.list"; const response = UrlFetchApp.fetch(url, options); const members = JSON.parse(response).members; let
![GAS × Slack:Slackユーザーの一覧を出力する](https://cdn-ak-scissors.b.st-hatena.com/image/square/0b49a49a21bd31937469402e0f367b42d8494320/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fzenn%2Fimage%2Fupload%2Fs--FvCFgo4n--%2Fc_fit%252Cg_north_west%252Cl_text%3Anotosansjp-medium.otf_55%3AGAS%252520%2525C3%252597%252520Slack%2525EF%2525BC%25259ASlack%2525E3%252583%2525A6%2525E3%252583%2525BC%2525E3%252582%2525B6%2525E3%252583%2525BC%2525E3%252581%2525AE%2525E4%2525B8%252580%2525E8%2525A6%2525A7%2525E3%252582%252592%2525E5%252587%2525BA%2525E5%25258A%25259B%2525E3%252581%252599%2525E3%252582%25258B%252Cw_1010%252Cx_90%252Cy_100%2Fg_south_west%252Cl_text%3Anotosansjp-medium.otf_37%3Abarusu%252Cx_203%252Cy_121%2Fg_south_west%252Ch_90%252Cl_fetch%3AaHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL3plbm4tdXNlci11cGxvYWQvYXZhdGFyL2IzZWVkNTk5MDcuanBlZw%3D%3D%252Cr_max%252Cw_90%252Cx_87%252Cy_95%2Fv1627283836%2Fdefault%2Fog-base-w1200-v2.png)