Open Allabashaik opened 1 year ago
Hello @Allabashaik , thanks for bringing this to my attention! Can you do Get-Module PSFive9Admin
and let me know what version of the module you're on?
ModuleType Version Name ExportedCommands
Script 1.0.120 PSFive9Admin {Add-Five9AgentGroupMember, Add-Five9CampaignDisposition, Add-F..
ModuleType Version Name
Script 1.0.120 PSFive9Admin
@sqone2 Any Updates for Me, also Could you please let me know how can we disconnect from the Five9AdminWebservice.. May be for example like this Disconnect-Five9AdminWebservice -Verbose -credential $credential -Datacenter Name"?
Hi,
We have been using PowerShell Commands to Onboard/offboard users in to five9 System. While we were working with multiple domains, we have encountered an issue where the previous domain configuration/data is still active/cached even after connecting to a new domain.
Example - Domain 1, Domain 2
I have connected to Domain 1 Using the below command and the Connection was successful, was able to Create the User.
"Connect-Five9AdminWebService -Verbose -credential $credential -Datacenter Name".
Post the 1st User creation, I have tried to Connect to Domain 2 and have executed the above command and the connection got established. When I run the below User creation command the user creation is getting failed.
New-Five9User -CopyRolesFromUsername "$DefaultRole" -AgentGroups "$AgentGroup" -Skills "$DefaultSkill" -FirstName "$FirstName" -LastName "$LastName" -Username "$Username" -Email "$Email" -Password "$PasswordNew" -FederationId "$FederationId" -CanChangePassword $false -Active $true -MustChangePassword $false -Verbose
I have tested multiple scenarios in different iterations and what I have observed is that the previous domain data/Configuration is getting Cached from because of which it is not allowing to perform the User creation though connected to Domain 2. Request your inputs and help to fix this issue.
Do we have a command which we can execute to disconnect from the Domain 1 before Connecting to Domain 2? OR DO we have any command to remove, or Clear the Cache stored related to previous domain?
Looking forward for your guidance and Support as this is very critical for us as we are unable to perform the user onboarding through Automation.
"ERROR: Exception setting "roles": "Cannot convert the "PSFive9Admin.userRoles" value of type "PSFive9Admin.userRoles" to type "PSFive9Admin.userRoles"." OriginInfo : localhost Exception : Type : System.Management.Automation.RemoteException SerializedRemoteException : Microsoft.PowerShell.Commands.WriteErrorException: Exception setting "roles": "Cannot convert the "PSFive9Admin.userRoles" value of type "PSFive9Admin.userRoles" to type "PSFive9Admin.userRoles"." SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo ErrorRecord : Exception : Type : System.Management.Automation.RemoteException SerializedRemoteException : Microsoft.PowerShell.Commands.WriteErrorException: Exception setting "roles": "Cannot convert the "PSFive9Admin.userRoles" value of type "PSFive9Admin.userRoles" to type "PSFive9Admin.userRoles"." SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo ErrorRecord :"