How Can I Reassign Scheduled Reports In Bulk for Former Employee

We've had an employee leave and they had some scheduled reports on some cards.

I've tried looking around but haven't yet found a way to reassign the scheduled reports in bulk.

Has anyone found a way to do this?

Best Answer

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    Domo CLI tool has a command called swap-ower which allows you to reassign different object types.

    swap-owner: Transfers ownership of Alerts, Cards, Groups, Pages, Reports, DataSets,
    and DataFlows from one user to another. This command changes ALL objects (of the specified type/s)
    which belong to a user.
    
    Note: -nt and -ot options are only supported for cards
    
    Valid entries for
      CURRENT_OWNER: user id, email address
      NEW_OWNER: user id, email address
      CURRENT_OWNER_TYPE: 'USER', 'GROUP'
      NEW_OWNER_TYPE: 'USER', 'GROUP'
    
    Requirements: None
    
    Exit Status: '0' on success and '1' on failure.
    
    Examples:
      transfer all cards and dataFlows from user with email 'domoUser1@company.com'
      to user with email 'domoUser2@company.com
    
        swap-owner --current owner ID domoUser1@company.com --new owner ID domoUser2@company.com --Cards --Dataflows
    
      transfer all cards from user with email 'domoUser1@company.com' to group with id '12345'
    
        swap-owner --current owner ID domoUser1@company.com --new owner ID 12345 --current owner type GROUP --Cards --Dataflows
    
    
    Related commands: manage-owner
      usage:
        -a,--Alerts                                      Alerts
        -c,--Cards                                       Cards
        -df,--Dataflows                                  Dataflows
        -ds,--Datasets                                   Datasets
        -g,--Groups                                      Groups
        -n,--new owner ID <NEW_OWNER>                    new owner ID - Required
        -nt,--new owner type <NEW_OWNER_TYPE>            new owner type - Default:
                                                         USER
        -o,--current owner ID <CURRENT_OWNER>            current owner ID - Required
        -ot,--current owner type <CURRENT_OWNER_TYPE>    current owner type -
                                                         Default: USER
        -p,--Pages                                       Pages
        -r,--Reports                                     Reports (requires Admin
                                                         privileges to perform swap)
    

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**

Answers

  • GrantSmith
    GrantSmith Coach
    Answer ✓

    Domo CLI tool has a command called swap-ower which allows you to reassign different object types.

    swap-owner: Transfers ownership of Alerts, Cards, Groups, Pages, Reports, DataSets,
    and DataFlows from one user to another. This command changes ALL objects (of the specified type/s)
    which belong to a user.
    
    Note: -nt and -ot options are only supported for cards
    
    Valid entries for
      CURRENT_OWNER: user id, email address
      NEW_OWNER: user id, email address
      CURRENT_OWNER_TYPE: 'USER', 'GROUP'
      NEW_OWNER_TYPE: 'USER', 'GROUP'
    
    Requirements: None
    
    Exit Status: '0' on success and '1' on failure.
    
    Examples:
      transfer all cards and dataFlows from user with email 'domoUser1@company.com'
      to user with email 'domoUser2@company.com
    
        swap-owner --current owner ID domoUser1@company.com --new owner ID domoUser2@company.com --Cards --Dataflows
    
      transfer all cards from user with email 'domoUser1@company.com' to group with id '12345'
    
        swap-owner --current owner ID domoUser1@company.com --new owner ID 12345 --current owner type GROUP --Cards --Dataflows
    
    
    Related commands: manage-owner
      usage:
        -a,--Alerts                                      Alerts
        -c,--Cards                                       Cards
        -df,--Dataflows                                  Dataflows
        -ds,--Datasets                                   Datasets
        -g,--Groups                                      Groups
        -n,--new owner ID <NEW_OWNER>                    new owner ID - Required
        -nt,--new owner type <NEW_OWNER_TYPE>            new owner type - Default:
                                                         USER
        -o,--current owner ID <CURRENT_OWNER>            current owner ID - Required
        -ot,--current owner type <CURRENT_OWNER_TYPE>    current owner type -
                                                         Default: USER
        -p,--Pages                                       Pages
        -r,--Reports                                     Reports (requires Admin
                                                         privileges to perform swap)
    

    **Was this post helpful? Click Agree or Like below**
    **Did this solve your problem? Accept it as a solution!**