Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise PowerShell Extensions Forum How to change the Security type from windows to Federated Identity using PowerShell and also updating the Identity name with email address
    • Sign In

    • State Verified Answer
    • Replies 3 replies
    • Answers 1 answer
    • Subscribers 65 subscribers
    • Views 2057 views
    • Users 0 members are here
    • powershell

    How to change the Security type from windows to Federated Identity using PowerShell and also updating the Identity name with email address

    swaroop bukke
    Offline swaroop bukke over 6 years ago

    $CurrentSecProvider = 'domain'

    $NewSecProvider = ''

    $CurrentType = 'Windows'

    $NewType = 'Federated Identity'

    $Users = Get-PWUser | Where { $_.SecProvider -eq $CurrentSecProvider }

    $Type = Get-PWUser | Where { $_.Type -eq $CurrentType }

    foreach($user in $users) {

    $user.SecProvider = $NewSecProvider

    Update-PWUser $user

    }

    foreach($Type in $Type) {

    $user.Type = $NewType

    Update-PWUser $Type

    }

    • Sign in to reply
    • Cancel

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies