By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,583 Members | 3,481 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,583 IT Pros & Developers. It's quick & easy.

Custom Policy for OSS on Alibaba Cloud

P: 51
Hi Everyone,
I have created a root folder called A and there are two subfolders under A. The two subfolders name are Alice and Peter respectively. I attach a custom policy to the root folder with the policy below.

"Statement": [
"Action": [
"Effect": "Allow",
"Resource": "acs:oss:*:*:A/${username}/*"
"Version": "1"

When Alice log in to the console using her credentails and tried to upload a new file into her folder, she is unable to upload the folder.

Does anyone know how to solve this issue or i am using the wrong policy variable?

Thanks in advance.
May 21 '18 #1
Share this Question
Share on Google+
1 Reply

P: 22
As far as I know, variables like ${username} are not supported. So you need to replace that variable with fixed user name and attach different policies to different user. I know this is very inconvenient, though I don't know any other workaround.
May 22 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.