I'm trying to create new users with Slack SCIM API. I've managed to create a new user without password but the invite email was newer sent. I've send following post to https://api.slack.com/scim/v1/Users
{
"schemas": ["urn:scim:schemas:core:1.0",
"urn:scim:schemas:extension:enterprise:1.0"],
"userName": "samplename",
"nickName": "samplename",
"name": {
"familyName": "sample",
"givenName": "name"
},
displayName": "sample name",
"emails": [
{
"value": "sample.name#gmail.com",
"type": "work",
"primary": true
}
],
"userType": "sample",
"title": "sample",
"active":true
}
I can see the user created in the user list but never got the actual invite. (yes I checked spam). Is there even a way for this user to login?
Related
wss://[ABC.DOMAIN.COM]/websocket
I am using websocket of rocket chat.
This is one of the message from the list of messages response the websocket provides.
{
"_id": "some id",
"t": "au",
"rid": "some id",
"ts": {
"$date": 1663823165892
},
"msg": "7d4e5ab4-34ca-11ed-b29a-7cc2c61d171e",
"u": {
"_id": "some id",
"username": "svc_site_prod",
"name": "svc_site_prod"
},
"groupable": false,
"_updatedAt": {
"$date": 1663823165902
}
}
It uses t = "au" for added user and "ru" for removed user.
The real user added is present in "msg".
But it only shows the username of user who is added or removed.
I want the full name of this user.
I know I can just make another request to find the user's info by api. But what I want is to get the details in this response.
Edit: the headers of request
{
"msg": "method",
"method": "loadHistory",
"id": "1",
"params": [
"AyzhtTJiE6YG3cnfA",
null,
50,
null
]
}
I have a shared mailbox. The shared mailbox has an address SHAREDBOX1#mycompany.com. A handful of users have access to send emails on behalf of that mailbox. Via the Microsoft Graph API, is it possible to see which user sent an individual email via the sharedbox1 address?
With this use case in mind, it makes sense this would only be something we would check on outgoing messages.
Looking at the docs https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0 , the message properties specifically, is there any way to find which user sent an email on behalf of a shared mailbox?
For example, this is a (fake, all ids have been faked and sanitized) example email sent from a shared mailbox by a user on behalf of the shared mailbox represented in the the MS Graph API to 3 other users
{
"#odata.etag": "W/\"CQSJDKJGKJGROwCC\"",
"id": "AASDGSDGSDFMP4-RK_VSDFA1-bSDFSDFjB-JHUffy=",
"createdDateTime": "2022-07-06T16:50:55Z",
"lastModifiedDateTime": "2022-07-06T16:51:03Z",
"changeKey": "CSDFSDFSDGSFDSDFSFCC",
"categories": [],
"receivedDateTime": "2022-07-06T16:50:00Z",
"sentDateTime": "2022-07-06T16:50:45Z",
"hasAttachments": false,
"internetMessageId": "<PDSVSSVSVFGNFGHJ.something.prod.outlook.com>",
"subject": "RE: Work Stuff",
"importance": "normal",
"parentFolderId": "SDFFGAGSDFHSDFHDFNIUERGHSJHDNVUIAGNOIGAIU",
"conversationId": "JHFBVJHSBVJBVJHZVJ=",
"conversationIndex": "ETHYTJTJDGNRYJD",
"isDeliveryReceiptRequested": false,
"isReadReceiptRequested": false,
"isRead": true,
"isDraft": false,
"webLink": "https://outlook.office365.com/owa/?ItemID=SFBHWIUEwfADtegVAJBVSHFBVYUS&exvsurl=1&viewmodel=ReadMessageItem",
"inferenceClassification": "focused",
"sender": {
"emailAddress": {
"name": "SHAREDBOX1",
"address": "SHAREDBOX1#mycompany.com"
}
},
"from": {
"emailAddress": {
"name": "SHAREDBOX1",
"address": "SHAREDBOX1#mycompany.com"
}
},
"toRecipients": [
{
"emailAddress": {
"name": "Thad",
"address": "thad#mycompany.com"
}
}
],
"ccRecipients": [
{
"emailAddress": {
"name": "Chad",
"address": "chad#mycustomer.com"
}
},
{
"emailAddress": {
"name": "Vlad",
"address": "vlad#mycustomer.com"
}
}
],
"bccRecipients": [],
"replyTo": [],
"flag": {
"flagStatus": "notFlagged"
}
}
The email is from SHAREDBOX1#mycompany.com, being sent to Chad, Vlad, and Thad.
Let's say the user who actually sent the email on behalf of SHAREDBOX1#mycompany.com is brad#mycompany.com
I was hoping that the "sender" field would have contained brad#mycompany.com, as according to these docs https://learn.microsoft.com/en-us/graph/outlook-send-mail-from-other-user#send-on-behalf but that appears to not be the case. Both "sender" and "from" are always populated as SHAREDBOX1#mycompany.com (so that would indicate that the permission on the shared box for the users is "Send As" instead of "Send on Behalf")https://learn.microsoft.com/en-us/graph/outlook-send-mail-from-other-user#send-as
Assuming the permission is "Send As", is there somewhere else in the API where that information can be looked up?
Thank you!
We are building a product integration using ms teams and ms bots. We are having an existing integration with Slack already. In the slack World we identify a unique user by TEAM_ID and USER_ID . In case of Teams I can see even id in the from node is a very long string suggesting its unique. Below payload is one example coming to our server. Can someone confirm if using id from the from node is wont change a particular user ever?
the user id being assumed unqiue to a user below is "29:1374Bmi6ngJLBlF9oGVcDuTaBbMfJmcOF9eUvQVdx_rgYh5spPNQ5Mi6fLdVvCiT7mQPMNytT0zGk_iAUtvqKAwXXXX"
{
"_activity": {
"id": "1576102076169",
"from": {
"id": "29:1374Bmi6ngJLBlF9oGVcDuTaBbMfJmcOF9eUvQVdx_rgYh5spPNQ5Mi6fLdVvCiT7mQPMNytT0zGk_iAUtvqKAwXXXX",
"name": "My Name",
"aadObjectId": "37a2516a-baf2-41d8-a406-a067888d676c"
},
"conversation": {
"conversationType": "personal",
"tenantId": "9bfb3569-994e-4908-855c-c7f6c1a94100",
"id": "a:1DcGjCAgiuinvuzR0Mx6dR9uJOB3YUwjMdLOiGTAwQ7KWSGsiEijNfvir66ep7k0fABwoSXxCAACx2_3GflfTNIZL7XMkfjrMm0v8OzJJ7vvIFKasqrClrZ_T-8dDfdT0"
},
"channelData": {
"tenant": {
"id": "9bfb3569-994e-4908-855c-c7f6c1a94100"
}
},
"text": "contact mat",
"textFormat": "plain",
"type": "message",
"channelId": "msteams",
"serviceUrl": "https://smba.trafficmanager.net/amer/",
"recipient": {
"id": "28:a835cf1d-83a8-4ae9-845a-23a68a1df442",
"name": "FlashCX.ai"
}
}
}
#Moblize IT Yes the id obtained from activity.from.id is the unique id for user and it wont change.
I have a spring-boot based micro-service generated using JHipster.
I am using keycloak as my Auth Server. I could enable Role-based & scope based authorization on my resources(apis).
Now the requirement is: based on the role of the client, I need to restrict the information to send in the response (either mask the attributes or nullify them).
eg:
consider the following api to get the person's profile
/api/person/{id}
{
"name": {
"firstName": "Jack",
"lastName": "Sparrow"
},
"gender": "MALE",
"emails": {
"details": [
{
"emailId": "jack.sparrow#gmail.com"
}
]
},
"phones": {
"details": [
{
"phoneNumber": "1234567890",
"countryCode": "+1"
}
]
},
"addresses": {
"details": [
{
"addressLine1": "aaaaaaaa",
"addressLine2": "bbbbbbb",
"city": "cccccc",
"state": "ddddd",
"country": "South Africa",
"postalCode": "987654"
}
]
},
"photo": "string",
"nationality": "South Africa",
"countryOfResidence": "string",
"active": true,
"createdAt": 1537431339569,
"modifiedAt": 1537436600693,
"createdBy": "admin",
"modifiedBy": "admin"
}
Now, when a person with BASIC role calls this API, the requirement is to show only basic information like:
- name, gender
If he has INTERMEDIATE role then we can send something more than basic but not full information. eg: name, gender, photo, nationality
If he has ADMIN role then we can send the complete information.
Can anyone please let me know What is the best approach to achieve this.
-- Thanks in advance :)
I have one member in a team drive that was suspended, but now it is active.
When I list permissions:
https://www.googleapis.com/drive/v3/files/{drive-id}/permissions?supportsTeamDrives=true&useDomainAdminAccess=true&fields=permissions(type%2Crole%2CemailAddress)
I get:
{
"permissions": [
{
"type": "user",
"emailAddress": "",
"role": "organizer"
},
{
"type": "user",
"emailAddress": "***#***",
"role": "reader"
}
]
}
Is this a correct behavior to return an empty 'emailAddress' for users that were suspended? How can I get user mail in this case?