Get the owner of an asset folder via ecmascript

Avatar

Avatar
Validate 1
Level 1
patrickp2171254
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
patrickp2171254
Level 1

Like

1 like

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
patrickp2171254
Level 1

15-02-2017

I have a workflow that is launched whenever a new file is uploaded to the dam. Each folder in the dam should either have an assigned owner, or should be able to find an owner by traversing up the directory path. That owner(s) are sent a notification to approve the new file. Since i know the path of the directory, I know i can infer who the owner group is with "mac-default-<folder name>-owner". But this falls apart if multiple folders have the same name, as the duplicate folder would have the owner group "mac-default-<folder name>1-owner", and i won't know which user group applies to the given folder.

Is there a more certain way to find the owner using ecmascript to be run by the workflow?

Thanks,

Alek