This means something is only for a certain group. It is also used when something is only true under a certain condition.
に、。
We will give a commemorative gift, but only to customers participating in today's sale.
、、。
This library can be used 24 hours a day, but only by students.
、、。
In last month's campaign, the monthly fee became free for the first month, but only for new subscribers.
、、。
Normally, photography is prohibited, but it is permitted only for those who have a permit.
、に。
The event will be moved to an indoor venue only in the case of rain.