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

[BUG] Delete user on Azure, azure provisioning call to SIMGATEWAY to delete user but SIMGATEWAY response {"statusCode":204,"statusMessage":"No Content"} #47

Closed
ngohuytrieu opened this issue Dec 22, 2021 · 2 comments

Comments

@ngohuytrieu
Copy link

ngohuytrieu commented Dec 22, 2021

Hi guys,
I set up scimgateway on my local machine, I linked my azure provisioning to my local scimgateway.
Create user, update user works just fine but delete is not working, scimgateway response no content.

Here is the log of delete user on my local scimgateway:

2021-12-22T14:01:40.129 debug: scimgateway[plugin-loki] [Modify User] id=user@example.com
2021-12-22T14:01:40.130 debug: scimgateway[plugin-loki] convertedBody={"active":false}
2021-12-22T14:01:40.130 debug: scimgateway[plugin-loki] calling "modifyUser" and awaiting result
2021-12-22T14:01:40.130 debug: plugin-loki[undefined] handling "modifyUser" id=user@example.com attrObj={"active":false}
2021-12-22T14:01:40.131 info: scimgateway[plugin-loki] 176ms [my-azure-ip] token PATCH http://mylocalsimgateway.com Inbound = {"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"Replace","path":"active","value":"False"}]} Outbound = {"statusCode":204,"statusMessage":"No Content"}

Is this an issue of azure provisioning or my local scimgateway?

@ngohuytrieu ngohuytrieu changed the title Delete user on Azure, azure provisioning call to SIMGATEWAY to delete user but SIMGATEWAY response {"statusCode":204,"statusMessage":"No Content"} [BUG] Delete user on Azure, azure provisioning call to SIMGATEWAY to delete user but SIMGATEWAY response {"statusCode":204,"statusMessage":"No Content"} Dec 22, 2021
@jelhub
Copy link
Owner

jelhub commented Dec 22, 2021

Hi,
Following is mentioned in the document:

  • Deleting a user in Azure AD sends a modify user {"active":"False"} which means user should be disabled. This logic is default set in attribute mappings expression rule Switch([IsSoftDeleted], , "False", "True", "True", "False"). Standard SCIM "DELETE" method seems not to be used.

Regards,
Jarle

@jelhub jelhub closed this as completed Dec 22, 2021
@ngohuytrieu
Copy link
Author

@jelhub Thank you for your support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants