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

update insite / outsite in update event #19

Open
mouki9 opened this issue Sep 18, 2024 · 2 comments
Open

update insite / outsite in update event #19

mouki9 opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mouki9
Copy link

mouki9 commented Sep 18, 2024

The current code does not allow for update of the InSite attribute of the AFAS user. Only whenever the account has been correlated.
See line 140 in the update.ps1.

The following code is present:
if (($account.PSObject.Properties.Name -Contains 'InSi') -and ($actionContext.AccountCorrelated -eq $true)) { $updateAccountFields += "InSi" }
The same goes for the OutSite attribute (Site)
The second part should not be present if you want to actually update that attribute in a regular update event.

@mouki9 mouki9 added the bug Something isn't working label Sep 18, 2024
@rschouten97
Copy link
Collaborator

@mouki9 What would be the use case for updating these settings during an update, aside from a bulk update? Is it when the decision to enable or disable is based on HR data to support department or profession changes? For example, should it be enabled for the IT department and disabled for the Administration department? And should it automatically update if an employee switches between these departments?

@mouki9
Copy link
Author

mouki9 commented Oct 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants