Absent Member.. dany8800 Absent Member..
Absent Member..
676 views

restrict asset modification by Location wise

Jump to solution

Hi Experts,

 

We have around 200 assets which are of different locations say ALCOB & ALWAR.

Now our requirement, if an user(Operator) logins into AM, he needs to do the modifications of the assets only for ALCOB location.

Same way for other locations.

We have set access restriction using this portfolio.location = user.locaton.

But locationwise restriction is not happening.

 

Please help

 

Dany

0 Likes
1 Solution

Accepted Solutions
Jason_Dowd Acclaimed Contributor.
Acclaimed Contributor.

Re: restrict asset modification by Location wise

Jump to solution
It actually looks like they are not using CurrentUser, but the User link on amPortfolio.

Mark pointed out the correct way, which is to use CurrentUser...e.g.
(on amPortfolio)
CurrentUser.lLocaId = lLocaId

CurrentUser is a virtual link to the employee record of the user that is currently logged in.
Jason Dowd
HPE Software Support

If this post has helped you resolve the issue, please flag it as solved.

View solution in original post

4 Replies
Highlighted
RobC_TR Absent Member.
Absent Member.

Re: restrict asset modification by Location wise

Jump to solution

It's quite a customisation but we have locations added to the user records and then in the access restrictions for a given role/profile the locations is queried to grant or deny access to the locations for that individual.

 

This may make more sense if you had a large number of locations that you needed to control access to.

0 Likes
Acclaimed Contributor.. Mark Cullen_1 Acclaimed Contributor..
Acclaimed Contributor..

Re: restrict asset modification by Location wise

Jump to solution

What is the actual logic; I am assuming you are using CurrentUser.lLocaId?  Is the restriction systematic, before, or after?  Are you using the Read or Write for the access restriction?

 

I ask these questions becuase your requirement seems pretty simple to setup.

Jason_Dowd Acclaimed Contributor.
Acclaimed Contributor.

Re: restrict asset modification by Location wise

Jump to solution
It actually looks like they are not using CurrentUser, but the User link on amPortfolio.

Mark pointed out the correct way, which is to use CurrentUser...e.g.
(on amPortfolio)
CurrentUser.lLocaId = lLocaId

CurrentUser is a virtual link to the employee record of the user that is currently logged in.
Jason Dowd
HPE Software Support

If this post has helped you resolve the issue, please flag it as solved.

View solution in original post

Absent Member.. dany8800 Absent Member..
Absent Member..

Re: restrict asset modification by Location wise

Jump to solution

Hi Jason,

 

Thanks a lot it worked.

 

Regards,

Dany

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.