cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
User16096767
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 1 of 8

ePO admin Task and Query Ownership

Jump to solution

Hello Mcafee family,

I need to take Tasks and Queries ownership from past ePO admins. Is there anyway way we can run an Update statement against the databse to update by user name?

I think it is time consuming to access each Tasks and queries  save under my name.

2 Solutions

Accepted Solutions
cdinet
Employee
Employee
Report Inappropriate Content
Message 2 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

Here is a script one of our advanced team members wrote for server tasks - please validate any table names:

/*
Created by: Jeremy Stanley - Intel Security Sr Engineer, Support Engineering Operations
Date: 06/30/2015

Purpose:
This script can be used to change server task ownership from one user to another

Usage:
This query was tested for use with ePO 5.1.X.

You will need to update to lines of the script to reflect
the user account you are moving ownership away from as well
as the user account to are changing the ownership to.

Example:
Suppose you had a user account called "ToBeDeleted" which
owned one or more server tasks and you want to assign ownership
of these tasks to a user account named "NewTaskOwner". In that
scenario the script would look like this:

update OrionSchedulerTaskMT set UserId =
 (Select ID from OrionUsersMT where Name = 'ToBeDeleted')
where
 UserID = (Select ID from OrionUsersMT where Name = 'NewTaskOwner')
 
You can use this query to list out the usernames in the table:
select Name from OrionUsersMT

*/


update OrionSchedulerTaskMT set UserId =
 (Select ID from OrionUsersMT where Name = '<Username you are moving too>')
where
 UserID = (Select ID from OrionUsersMT where Name = '<Username you are moving from>')

-----------------------------------------

You can use KB83096 to determine current task and query ownership.  You can change the created by using same method as above. 

I don't believe it is necessary to take ownership of queries that are publicly shared.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

cdinet
Employee
Employee
Report Inappropriate Content
Message 4 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

Let me know if that fixes it for you.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

7 Replies
cdinet
Employee
Employee
Report Inappropriate Content
Message 2 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

Here is a script one of our advanced team members wrote for server tasks - please validate any table names:

/*
Created by: Jeremy Stanley - Intel Security Sr Engineer, Support Engineering Operations
Date: 06/30/2015

Purpose:
This script can be used to change server task ownership from one user to another

Usage:
This query was tested for use with ePO 5.1.X.

You will need to update to lines of the script to reflect
the user account you are moving ownership away from as well
as the user account to are changing the ownership to.

Example:
Suppose you had a user account called "ToBeDeleted" which
owned one or more server tasks and you want to assign ownership
of these tasks to a user account named "NewTaskOwner". In that
scenario the script would look like this:

update OrionSchedulerTaskMT set UserId =
 (Select ID from OrionUsersMT where Name = 'ToBeDeleted')
where
 UserID = (Select ID from OrionUsersMT where Name = 'NewTaskOwner')
 
You can use this query to list out the usernames in the table:
select Name from OrionUsersMT

*/


update OrionSchedulerTaskMT set UserId =
 (Select ID from OrionUsersMT where Name = '<Username you are moving too>')
where
 UserID = (Select ID from OrionUsersMT where Name = '<Username you are moving from>')

-----------------------------------------

You can use KB83096 to determine current task and query ownership.  You can change the created by using same method as above. 

I don't believe it is necessary to take ownership of queries that are publicly shared.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

User16096767
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 3 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

Great! this is what I was looking for. I have few past admins that I need to cleanup.

cdinet
Employee
Employee
Report Inappropriate Content
Message 4 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

Let me know if that fixes it for you.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

User16096767
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 5 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

@cdinet , I have successfully transferred the tasks and Queries to my username, but when I login I don't see those queries or tasks. 

Database on the other hand shows ownership belong to me.

cdinet
Employee
Employee
Report Inappropriate Content
Message 6 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

Please open a ticket so we can look at this for you.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

User16096767
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 7 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

I have created the ticket.

User16096767
Reliable Contributor
Reliable Contributor
Report Inappropriate Content
Message 8 of 8

Re: ePO admin Task and Query Ownership

Jump to solution

I solved my own issue. Updated the groupid to show for my login.

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from product experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by employees.
Join the Community
Join the Community