Question

Transfer Google Workspace Admin User manager attribute to Slack Manager field

  • 13 March 2024
  • 7 replies
  • 39 views

Hi everyone,

 

I’m working on creating a Zap to transfer the Google Workspace Admin User attribute for manager to a custom user Profile field in Slack. We bought the Atlas upgrade for Slack and you need to transfer the manager attribute via API to the custom manager field. 

  • Unfortunately the Google Workspace Admin web app for Slack SAML does not include the manager attribute (even though it does include a lot of attribute options).
  • Slack informed me that the only way to do this transfer is via API… so I’m hoping that Zapier might work.
  • Slack support stated this in our last exchange, “If you were able to send a PATCH request to our /Users endpoint: https://api.slack.com/admins/scim2#patch-users-id making sure to reference the 
    urn:ietf:params:scim:schemas:extension:enterprise:2.0:User schema's "manager" field, then that should suffice. “

I found this Zapier integration and it looks promising Create integrations between Slack and Google Workspace Admin to automate any workflow

  • Google Admin Trigger: Updated User
  • Slack Action: API Request (Beta)

 

I’ve set up the following Zap but it’s not working in the Test. Does anyone know what I’m doing wrong? Admittedly, I’m new to Zapier and don’t write APIs. Thanks in advance!  Matt

  • HTTP Method: PATCH
    • Hoping this will patch the field in Slack
  • URL: https://api.slack.com/admins/scim2#patch-users-id
    • I’m actually not sure what URL to put here and I’m getting an error (see screenshot below).
  • Query String Parameters: urn:ietf:params:scim:schemas:extension:enterprise:2.0:User:managerId
  • Insert Date, relations value for manager.

 

 

 


This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

7 replies

Userlevel 7
Badge +14

Hi @Matt_THL 

The link used in the URL is a link to a Slack API resource: https://api.slack.com/admins/scim2#patch-users-id

Make sure to review the top of the resource for guidance about the requirements for using the API and endpoints documented.

You may also need to add Headers.
 

 

 

 

 

Try this URL and replace the [ID] with the ID of the User to PATCH.

https://api.slack.com/scim/v2/Users/[ID]

 

Thank you @Troy Tessalone … quick question, the user I want to update is just going to be any user that gets updated in Google Admin, and then that mapping to their Slack account via email.

 

Since that’s the case, it seems like if I put any individual ID in the field it wouldn’t be right. Does that make sense to you?

Userlevel 7
Badge +14

@Matt_THL 

[ID] would be dynamic and needs to be the Slack User ID per the Slack API docs.

 

 

Thanks again, @Troy Tessalone! I tried that and here is what I’m seeing

 

 

Userlevel 7
Badge +14

@Matt_THL 

Which Slack plan do you have?

Business+

Userlevel 7
Badge +14

@Matt_THL 

You may have to use a different app (Webhooks) to try using the Slack API.

 

The Slack Zap app is configured to work with this Slack API base domain url structure.

 

The Slack SCIM API has a different base domain url structure.