<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007eT8H7CAKOkta Classic EngineLifecycle ManagementAnswered2024-04-16T09:47:50.000Z2022-05-18T21:29:41.000Z2022-08-23T21:43:07.000Z

SteveM.58178 (Customer) asked a question.

Bulk assign users to a group via CSV

Does anyone know why the new feature:

 

https://help.okta.com/en-us/Content/Topics/users-groups-profiles/usgp-bulk-assign-group-people.htm

 

is in the last release in my preview versions 2022.05.0 but is, seemingly, not part of the production release 2022.05.0?

 

It's conspicuously missing from the 2022.05.0 production release notes also.

 

In our first preview (development) instance, I had to contact support and they enabled it. When it was rolled out into our QA preview instance, it was turned on by default and they assured me it would be automatically enabled when it goes into production.

 

But now, it's not there AND the 2022.05.0 production release notes make no mention of it.

 

Thanks.


  • flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)

    Hi @SteveM.58178 (Customer)​,

     

    Thank you for posting on the Okta community page!

     

    When new features are being released, they are first deployed only on preview instances because these environments are used for testing purposes to be able to make tweaks or major changes to the functionality in case it does not behave as expected. Also this process is performed to make sure that issues will not be encountered when it will be deployed for customers on the production tenant.

     

    Additionally, I have done some research on my end and it seems that usually, features that are made available in preview, are deployed to production after one week in case no issues are being reported. If updates need to be made in regards to that functionality, the deployment to production might be delayed until the issues are resolved. Furthermore, this specific feature will be generally available when it will be deployed in production therefore it will be enabled by default.

     

    I hope the above information is useful!

     

     

    Expand Post
  • JohnW.14649 (Customer)

    @flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)​  Did this get resolved? I'm trying to add users using "Bulk assign people to a group | Okta" and this feature still does not exist. We tried to change our view to include preview items, but it still wasn't there. The workaround to create an app and pull people in is cumbersome and confusing when a user sees the app pop up in their dashboard.

     

    Thank you,

     

    John

    Expand Post
  • 4a613 (4a613)

    Hi @flaviu.vrinceanu1.5628408972654734E12 (Customer Success Service Delivery)​ Many customers have been waiting for this feature to be in production. Can Okta advise when we should expect this to be a live feature? Thanks.

  • SteveM.58178 (Customer)

    Hey All, Just an FYI, I finally had it enabled in my production instance with the 2022.08.01 E build. This happened, I think, last Wednesday.

     

    However, after all this, IMHO, while it works, it creates a two step process and the need to manage 2 CSV files for a single customer. We've abandoned the use of this feature and will continue to use a custom attribute in the CSV which we key off with a group rule instead to perform the assignment.

    Expand Post
  • DukeL.52995 (Customer)

    The OKTA built-in is very limited that it only allows you to manage a single group at a time.

    1. Export groups (groupId) and users (userId) using the Rocktar extension: https://chrome.google.com/webstore/detail/rockstar/chjepkekmhealpjipcggnfepkkfeimbd?hl=en-US
    2. Create a CSV with two columns: the first column is the groupId #s and the second column is the userIds (separated by commas). This CSV can have any many groups as you like, and here is an example of the first row. *Create a small csv file with only 1-3 groups and members for testing.
      1. 00g67e1mph6ZxjRxb5d7 (first column of GroupIds)
      2. 00u5i36ocazcuHEX45d7,00u5iaps7hhDi2Ik25d7 (UserIds separated by commas)
    3. Save the CSV file in these same location as the script below.
    4. Open a text editor, copy, paste, the script provided below, between the *** (exclude the *) and replace top three {{}} variables and remove the brackets
      1. INPUT = name of CSV file
      2. DOMAIN = domain.okta.com
      3. TOKEN = the okta API token
    5. Save the file as .sh file.
    6. Chmod 777 the .sh file
    7. Run the bash script.
    8. You should get 204 responses.
    9. Check your OKTA groups.

     

     

    *******************

    INPUT={{input.csv}}

    DOMAIN="{{domain.okta.com}}"

    TOKEN="SSWS {{apitoken}}"

     

    OLDIFS=$IFS

    IFS=','

    [ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }

    while read groupId userIdList

    do

      echo "\n Starting new group : $groupId and userIdList: $userIdList \n"

     

      echo "$userIdList" | tr -d '"' | {

       while read -d, userId;

        do

         echo "Updating user : $userId with group : $groupId"

     

         curlCmd=" -X PUT -H Accept: application/json -H Content-Type: application/json -H Authorization: $TOKEN https://$DOMAIN/api/v1/groups/$groupId/users/$userId"

         echo "Running curl $curlCmd\n"

         curl -o /dev/null -s -w "%{http_code}\n" -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: $TOKEN" "https://$DOMAIN/api/v1/groups/$groupId/users/$userId"

     

         sleep 1;

        done;

     

        userId=$(echo "$userId" | tr -d '\r' | tr -d '\n')

        echo "Updating last user in the userIdList : ${userId} with group : $groupId" | tr -d '\r' | tr -d '\n'

     

        curlCmd="-X PUT -H Accept: application/json -H Content-Type: application/json -H Authorization: $TOKEN https://$DOMAIN/api/v1/groups/$groupId/users/$userId"

        echo "Running curl $curlCmd\n"

        curl -o /dev/null -s -w "%{http_code}\n" -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: $TOKEN" "https://$DOMAIN/api/v1/groups/$groupId/users/$userId"

     

        sleep 1;

      }

     

    done < $INPUT

    IFS=$OLDIFS

    *****************

    Expand Post
This question is closed.
Loading
Bulk assign users to a group via CSV